Closed qq578023708 closed 4 years ago
You can use options.tables
.
For example:
// sequelize-automate.config.js
module.exports = {
dbOptions: {
database: "test",
username: "root",
password: "root",
dialect: "mysql",
host: "localhost",
port: 3306,
logging: false
},
options: {
type: "js",
dir: "models",
tables: [ 'user' ], // array of table names that you want to generate
}
}
Then
$ sequelize-automate -c "./sequelize-automate.config.js"
Thank you. I'll try
I want to generate only a database table model, how to do it