16 lines
286 B
JavaScript
16 lines
286 B
JavaScript
const Sequelize = require('sequelize')
|
|
const { DATABASE } = require('../config/config')
|
|
|
|
const sequelize = new Sequelize(
|
|
DATABASE.name,
|
|
DATABASE.user,
|
|
DATABASE.password,
|
|
{
|
|
dialect: 'mysql',
|
|
host: DATABASE.host,
|
|
port: DATABASE.port
|
|
}
|
|
)
|
|
|
|
module.exports = sequelize
|