Implement password validation and update user model roles

This commit is contained in:
Isuru Bimsara
2026-08-15 00:24:36 +05:30
parent 81d0e65686
commit ef8db0988b
3 changed files with 58 additions and 22 deletions
+1 -13
View File
@@ -36,20 +36,8 @@ module.exports = (sequelize, DataTypes) => {
allowNull: false
},
accountType: {
type: DataTypes.ENUM("admin", "management", "team_head", "user"),
type: DataTypes.ENUM("user", "admin", "superadmin", "manager", "business_customer", "rider", "customer","support_agent"),
defaultValue: "user"
},
role: {
type: DataTypes.STRING,
allowNull: false
},
roleID:{
type: DataTypes.STRING,
allowNull: false
},
department: {
type: DataTypes.STRING,
allowNull: true
}
},
{