添加银行政府后端接口
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
"username": "root",
|
||||
"password": "aiotAiot123!",
|
||||
"database": "ningxia_bank",
|
||||
"host": "127.0.0.1",
|
||||
"host": "129.211.213.226",
|
||||
"dialect": "mysql",
|
||||
"port": 3306
|
||||
"port": 9527
|
||||
},
|
||||
"test": {
|
||||
"username": "root",
|
||||
|
||||
@@ -3,10 +3,10 @@ const { Sequelize } = require('sequelize');
|
||||
// 从环境变量获取数据库配置
|
||||
const dialect = process.env.DB_DIALECT || 'mysql';
|
||||
const config = {
|
||||
logging: false,
|
||||
logging: console.log, // 启用SQL日志
|
||||
define: {
|
||||
timestamps: true,
|
||||
underscored: true,
|
||||
underscored: false,
|
||||
freezeTableName: true
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user