sequelize / sequelize-auto

Automatically generate bare sequelize models from your database.
2.88k stars 521 forks source link

trying to update but sequelize-auto clear model file not update model file #633

Open usamaAshrafPhambra opened 1 year ago

usamaAshrafPhambra commented 1 year ago

const auto = new SequelizeAuto(config.database, config.username, config.password, { host: config.host, dialect: config.dialect, directory: path.join(__dirname, '../', 'models'), // prevents the program from writing to disk tables: ['companies'] }) return auto.run(function (err) { return !err; });