Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //const _ = require('underscore');
- const Sequelize = require('sequelize');
- const db = new Sequelize({ // fixed by msx (+let)
- database: 'database',
- host: 'localhost',
- username: 'username',
- password: 'password',
- dialect: 'sqlite',
- storage: './sqlite-dev.db'
- });
- db.import('../models/accounts.js');
- //_.forEach(db.models, v => v.associate(db.models));
- db.sync();
- module.exports = db;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement