Skip to content

Instantly share code, notes, and snippets.

@kristersd
Created June 7, 2023 07:30
Show Gist options
  • Save kristersd/8dc1fac20e5ee6eb91519633a4920ba0 to your computer and use it in GitHub Desktop.
Save kristersd/8dc1fac20e5ee6eb91519633a4920ba0 to your computer and use it in GitHub Desktop.
const Sequelize = require("sequelize");
const DataTypes = Sequelize.DataTypes;
const setupHabit = require("./models/Habit");
// require your sequelize instance, where you called `new Sequelize()`
const instance = require("");
const Habit = setupHabit(instance, DataTypes);
module.exports = { Habit };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment