Adding new role "warehouse" to the job_role field of a user table

This commit is contained in:
Josepablo C
2025-02-25 00:20:45 -06:00
parent 0552e74fdb
commit 2b96f7a20d

View File

@@ -24,7 +24,7 @@ class Users extends Model {
password : { type : 'string' , maxLength : 64 }, password : { type : 'string' , maxLength : 64 },
name : { type : 'string' , maxLength : 45 }, name : { type : 'string' , maxLength : 45 },
last_name : { type : 'string', maxLength : 100 }, last_name : { type : 'string', maxLength : 100 },
job_role: { type: 'string', default : 'limited', enum : ['owner', 'manager', 'staff', 'driver', 'limited'] }, job_role: { type: 'string', default : 'limited', enum : ['owner', 'manager', 'staff', 'driver', 'warehouse', 'limited'] },
permissions: { type: 'string', default: 'limited', enum : ['carrier', 'shipper', 'limited'] }, permissions: { type: 'string', default: 'limited', enum : ['carrier', 'shipper', 'limited'] },
createdAt: { type: "string" }, createdAt: { type: "string" },
is_active : { type : 'boolean', default : true } is_active : { type : 'boolean', default : true }