Skip to content

Instantly share code, notes, and snippets.

@amandeepmittal
Created December 3, 2018 04:35
Show Gist options
  • Save amandeepmittal/7a97a877399d2913cab0ad0e781f8ef5 to your computer and use it in GitHub Desktop.
Save amandeepmittal/7a97a877399d2913cab0ad0e781f8ef5 to your computer and use it in GitHub Desktop.
'use strict';
module.exports = (sequelize, DataTypes) => {
const TodoItem = sequelize.define(
'TodoItem',
{
content: DataTypes.STRING,
complete: DataTypes.BOOLEAN
},
{}
);
TodoItem.associate = function(models) {
// associations can be defined here
};
return TodoItem;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment