-
-
Save amandeepmittal/d5adc0f7ec6b958082313b07ab0647cd 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 Todo = sequelize.define( | |
'Todo', | |
{ | |
title: DataTypes.STRING | |
}, | |
{} | |
); | |
Todo.associate = function(models) { | |
// associations can be defined here | |
}; | |
return Todo; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment