Ghost Sequelize
Installation
npm install ghost-sequelize --save
Overview
Config (default listed below)
Models
The module will attempt to load all sequelize model files from the directory
provided in the config object. All models will be available via the getDb()
method. See examples below.
Follow the steps below to get the module up and running.
1. Require
const GhostSequelize = ;
2. Instantiate
const DbService = config// See config above
3. Access Db (model layer)
const Db = DbService;DbmyModel;