all setup with jwt and bcrypt with whole file structure with auth middleware and login
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user