const Sequelize = require('sequelize');
const config = require('config/config')[process.env.NODE_ENV || 'development'];

config.define = {
  underscored: true,
};

module.exports = new Sequelize(config);

const Sequelize = require('sequelize');
const config = require('../config/config')[process.env.NODE_ENV || 'development'];

config.define = {
  underscored: true,
};

module.exports = new Sequelize(config);

Fix config location.