packServer/backend/.sequelizerc

14 lines
454 B
Plaintext

/**
* sequelize-cli 的路径配置
*
* DDL 只允许通过迁移脚本执行(`npm run db:migrate`),不允许直接连库改表。
*/
const path = require('path');
module.exports = {
config: path.resolve(__dirname, 'database', 'config.cjs'),
'migrations-path': path.resolve(__dirname, 'database', 'migrations'),
'seeders-path': path.resolve(__dirname, 'database', 'seeders'),
'models-path': path.resolve(__dirname, 'app', 'model'),
};