admin soft delete functionality, also fixed google sign in when user doesn't have first and last name
This commit is contained in:
@@ -137,6 +137,11 @@ const User = sequelize.define(
|
||||
defaultValue: 0,
|
||||
allowNull: false,
|
||||
},
|
||||
role: {
|
||||
type: DataTypes.ENUM("user", "admin"),
|
||||
defaultValue: "user",
|
||||
allowNull: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
hooks: {
|
||||
|
||||
Reference in New Issue
Block a user