Model initialization and association for Sequelize models.
Loads all model files from the models/ directory, initializes them, then sets up associations.
All models must be pre-loaded before associating to prevent circular dependency issues.
Type Declaration
():Promise<void>
Returns Promise<void>
Example
// This function is called automatically by express-sweet.mount() importloadModelsfrom'~/database/loadModels'; awaitloadModels();
Model initialization and association for Sequelize models. Loads all model files from the models/ directory, initializes them, then sets up associations. All models must be pre-loaded before associating to prevent circular dependency issues.