Maj pkgs + fix dep des buttons / commands + Ajout fichiers utils
This commit is contained in:
10
utils/initSequelize.js
Normal file
10
utils/initSequelize.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const Sequelize = require('sequelize')
|
||||
require('dotenv').config()
|
||||
|
||||
module.exports = new Sequelize(process.env.SEQUELIZE_DATABASE, process.env.SEQUELIZE_USER, process.env.SEQUELIZE_PASSWORD, {
|
||||
host: process.env.SEQUELIZE_HOST,
|
||||
dialect: process.env.SEQUELIZE_DIALECT,
|
||||
dialectOptions: process.env.SEQUELIZE_DIALECTOPTIONS,
|
||||
logging: process.env.SEQUELIZE_LOGGING === 'true',
|
||||
storage: process.env.SEQUELIZE_STORAGE
|
||||
})
|
||||
Reference in New Issue
Block a user