Created
May 6, 2019 17:32
-
-
Save emaitee/1287cb8057a12bc9b0f0bab5a3715739 to your computer and use it in GitHub Desktop.
node-express-boilerplate
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
export default (sequelize, DataTypes) => { | |
const User = sequelize.define( | |
'User', | |
{ | |
firstname: DataTypes.STRING, | |
lastname: DataTypes.STRING, | |
username: DataTypes.STRING, | |
email: DataTypes.STRING, | |
password: DataTypes.STRING, | |
role: DataTypes.STRING, | |
}, | |
{} | |
); | |
User.associate = function(models) { | |
// associations go here | |
}; | |
return User; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment