async initializeModels() {
        Version.initialize(this.sequelize);
        Permission.initialize(this.sequelize);
        PermissionGroup.initialize(this.sequelize);
        User.initialize(this.sequelize);

        await CustomerLogicHandler.instance.runAllCustomerLogicFunction("sequelizeInitModels", {sequelize: this.sequelize, sequelizeLoader: this});

        User.belongsTo(PermissionGroup);
        PermissionGroup.hasMany(User);

        PermissionGroup.belongsToMany(Permission, {through: "PermissionGroupPermissions"});
        Permission.belongsToMany(PermissionGroup, {through: "PermissionGroupPermissions"});
    }
/**
     * Initializes all models
     * @returns {Promise<void>}
     * @memberof SequelizeLoader
     */
Initializes all models
@returns {Promise}
@memberof SequelizeLoader
Initializes all models @returns { Promise } @memberof SequelizeLoader
async initializeModels() {
        Version.initialize(this.sequelize);
        Permission.initialize(this.sequelize);
        PermissionGroup.initialize(this.sequelize);
        User.initialize(this.sequelize);
        await CustomerLogicHandler.instance.runAllCustomerLogicFunction("sequelizeInitModels", {sequelize: this.sequelize, sequelizeLoader: this});
        User.belongsTo(PermissionGroup);
        PermissionGroup.hasMany(User);
        PermissionGroup.belongsToMany(Permission, {through: "PermissionGroupPermissions"});
        Permission.belongsToMany(PermissionGroup, {through: "PermissionGroupPermissions"});
    }
async initializeModels ( ) { Version . initialize ( this . sequelize ) ; Permission . initialize ( this . sequelize ) ; PermissionGroup . initialize ( this . sequelize ) ; User . initialize ( this . sequelize ) ; await CustomerLogicHandler . instance . runAllCustomerLogicFunction ( "sequelizeInitModels" , { sequelize : this . sequelize , sequelizeLoader : this } ) ; User . belongsTo ( PermissionGroup ) ; PermissionGroup . hasMany ( User ) ; PermissionGroup . belongsToMany ( Permission , { through : "PermissionGroupPermissions" } ) ; Permission . belongsToMany ( PermissionGroup , { through : "PermissionGroupPermissions" } ) ; }
Initializes all models
 @returns {Promise<void>}
 @memberof SequelizeLoader
Initializes all models @returns { Promise<void > } @memberof SequelizeLoader