This repository has been archived on 2025-11-04. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
know-it-all/server/db.js

14 lines
277 B
JavaScript

var { Sequelize, Options } = require('sequelize');
var configs = require('./config/config.js');
const env = process.env.NODE_ENV;
const config = configs[env];
const db = new Sequelize({
...config,
define: {
underscored: true,
},
});
module.exports = db;