sequelize.js 489 B

123456789101112131415161718192021222324
  1. import Sequelize from 'sequelize'
  2. import config from '../../../config'
  3. const DB = config.dbconfig5
  4. export default new Sequelize(DB.database, DB.username, DB.password, {
  5. host: DB.host,
  6. port: DB.port,
  7. dialect: config.db_type,
  8. dialectOptions: {
  9. charset: 'utf8mb4',
  10. // collate: 'utf8mb4_unicode_520_ci',
  11. bigNumberStrings: true,
  12. supportBigNumbers: true
  13. },
  14. pool: {
  15. max: 50,
  16. min: 10,
  17. idle: 10000
  18. },
  19. timezone: '+08:00' //修改时区为东八区
  20. })