1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- 'use strict';
- module.exports = appInfo => {
-
- const dbConfig = {
-
- dialect: 'mysql',
- delegate: 'model',
- baseDir: 'models/mysql',
- host: '192.168.1.126',
- port: 3306,
- database: 'universal_system',
- username: 'universal_system',
- password: 'universal_system',
- pool: {
- max: 3,
- min: 1,
- acquire: 60000,
- idle: 10000
- },
-
- logging:console.log,
-
- timezone: '+08:00',
-
- charset:'utf8',
-
- dialectOptions: {
-
- dateStrings: true,
-
- typeCast:true,
- },
-
- define:{
-
- freezeTableName:true,
-
- timestamps:false
- }
- };
- return dbConfig;
- }
|