15 lines
261 B
JavaScript
15 lines
261 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
|
|
}
|
|
)
|
|
|
|
module.exports = sequelize
|