Files
mv2_simple_crx/server/config/database.js
张成 a62018a062 1
2026-03-18 16:16:04 +08:00

24 lines
543 B
JavaScript

import { get_app_config } from './app_config.js';
export function get_sequelize_options() {
const cfg = get_app_config();
console.log( 'get_sequelize_options', cfg.mysql );
return {
host: cfg.mysql.host,
port: cfg.mysql.port,
username: cfg.mysql.user,
password: cfg.mysql.password,
database: cfg.mysql.database,
dialect: 'mysql',
logging: false,
define: {
underscored: true,
timestamps: true,
createdAt: 'created_at',
updatedAt: 'updated_at'
},
timezone: '+08:00'
};
}