Skip to content

Instantly share code, notes, and snippets.

@david-mart
Created June 11, 2019 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save david-mart/3a3be499fe11415a7a7a1cbcf139e715 to your computer and use it in GitHub Desktop.
Save david-mart/3a3be499fe11415a7a7a1cbcf139e715 to your computer and use it in GitHub Desktop.
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