Adding new role "warehouse" to the job_role field of a user table
This commit is contained in:
@@ -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 }
|
||||||
|
|||||||
Reference in New Issue
Block a user