all setup with jwt and bcrypt with whole file structure with auth middleware and login

This commit is contained in:
Arjun Patel
2019-01-10 10:37:07 -08:00
parent 518840a576
commit 9f247154f9
10 changed files with 360 additions and 115 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ module.exports = (sequelize, DataTypes) => {
middle_name: DataTypes.STRING,
last_name: DataTypes.STRING,
email: DataTypes.STRING,
password: DataTypes.STRING,
age: DataTypes.INTEGER,
phone: DataTypes.BIGINT,
address: DataTypes.STRING,
@@ -21,4 +22,4 @@ module.exports = (sequelize, DataTypes) => {
}
);
return Donors;
}
}