Skip to content

Instantly share code, notes, and snippets.

@emaitee
Created May 6, 2019 17:32
Show Gist options
  • Save emaitee/1287cb8057a12bc9b0f0bab5a3715739 to your computer and use it in GitHub Desktop.
Save emaitee/1287cb8057a12bc9b0f0bab5a3715739 to your computer and use it in GitHub Desktop.
node-express-boilerplate
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