Created
June 11, 2019 20:35
-
-
Save david-mart/3a3be499fe11415a7a7a1cbcf139e715 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Sequelize = require("sequelize"); | |
const config = require("../config"); | |
const UsersDb = new Sequelize(config.usersDatabaseName, config.username, config.password, config.options); | |
UsersDb.import("models/user.js"); | |
UsersDb.import("models/order.js"); | |
const ProductsDb = new Sequelize(config.productsDatabaseName, config.username, config.password, config.options); | |
ProductsDb.import("models/product.js"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment