model set up and associations

This commit is contained in:
Arjun Patel
2019-01-15 23:14:05 -08:00
parent a4e4394329
commit 86dd4c8cdb
8 changed files with 59 additions and 6 deletions
+3 -1
View File
@@ -16,7 +16,9 @@ module.exports = (sequelize, DataTypes) => {
},
email: {
type: DataTypes.STRING,
isEmail: true,
validate: {
isEmail: true
},
allowNull: false
},
password: {