async doDropAction(dropFilter = null) {
        if(!dropFilter) {
            await this.sequelize.drop();
            console.log("WARN", "Dropping all known Models ...");
        }
        else {
            await Promise.all(Object.keys(this.sequelize.models).map(async modelKey => {
                const Model = this.sequelize.models[modelKey];

                if(dropFilter.includes(modelKey) || dropFilter.includes(Model)) {
                    return;
                }

                try {
                    console.log("WARN", `Dropping Model [${modelKey}]`);
                    await this.sequelize.models[modelKey].drop({cascade: true});
                }
                catch {
                    console.log("ERROR", `Failed to drop Model [${modelKey}]`);
                }
            }));
        }
    }
/**
     * Drops all models or only those specified in dropFilter
     * @param {Array} [dropFilter=null]
     * @memberof SequelizeLoader
     */
Drops all models or only those specified in dropFilter
@param {Array} [dropFilter=null]
@memberof SequelizeLoader
Drops all models or only those specified in dropFilter @param { Array } [ dropFilter = null ] @memberof SequelizeLoader
async doDropAction(dropFilter = null) {
        if(!dropFilter) {
            await this.sequelize.drop();
            console.log("WARN", "Dropping all known Models ...");
        }
        else {
            await Promise.all(Object.keys(this.sequelize.models).map(async modelKey => {
                const Model = this.sequelize.models[modelKey];
                if(dropFilter.includes(modelKey) || dropFilter.includes(Model)) {
                    return;
                }
                try {
                    console.log("WARN", `Dropping Model [${modelKey}]`);
                    await this.sequelize.models[modelKey].drop({cascade: true});
                }
                catch {
                    console.log("ERROR", `Failed to drop Model [${modelKey}]`);
                }
            }));
        }
    }
async doDropAction ( dropFilter = null ) { if ( ! dropFilter ) { await this . sequelize . drop ( ) ; console . log ( "WARN" , "Dropping all known Models ..." ) ; } else { await Promise . all ( Object . keys ( this . sequelize . models ) . map ( async modelKey => { const Model = this . sequelize . models [ modelKey ] ; if ( dropFilter . includes ( modelKey ) || dropFilter . includes ( Model ) ) { return ; } try { console . log ( "WARN" , ` ${ modelKey } ` ) ; await this . sequelize . models [ modelKey ] . drop ( { cascade : true } ) ; } catch { console . log ( "ERROR" , ` ${ modelKey } ` ) ; } } ) ) ; } }
Drops all models or only those specified in dropFilter
 @param {Array} [dropFilter=null]
 @memberof SequelizeLoader
Drops all models or only those specified in dropFilter @param { Array } [ dropFilter = null ] @memberof SequelizeLoader