Sequelize Model loader
This module instanciates a memory database by using Sequelize ORM All other modules in this folder will considered as models
- Source:
Methods
(static) loadModels(customContent) → {Promise.<Object>}
Model loader Retrieve, require and instanciate all models from current folder
Parameters:
| Name | Type | Description |
|---|---|---|
customContent |
Object | Custom content |
- Source:
Returns:
Model loader with all loaded models
- Type
- Promise.<Object>
(static) retrieveModels() → {Promise.<Array.<String>>}
Retrieve all models in the current folder (*.js only)
- Source:
Returns:
All models in the current folder
- Type
- Promise.<Array.<String>>