-
-
Save amandeepmittal/7a97a877399d2913cab0ad0e781f8ef5 to your computer and use it in GitHub Desktop.
This file contains 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
'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