feat: Adding warehouse role to user, fix: when creating new employee genKey error
This commit is contained in:
@@ -27,7 +27,7 @@ const schema = new Schema({
|
||||
dob: { type: String },
|
||||
|
||||
// vehicle_status: { type: String, enum: ['Free', 'Loading', 'Moving', 'Downloading'] },
|
||||
job_role: { type: String, enum : [ 'admin', 'owner', 'manager', 'driver', 'staff' ] },
|
||||
job_role: { type: String, enum : [ 'admin', 'owner', 'manager', 'driver', 'staff', 'warehouse' ] },
|
||||
|
||||
employee_id: { type: String }, //EM-1000-1 EM-1000-2
|
||||
company: { type: Schema.Types.ObjectId, ref: 'companies' },
|
||||
|
||||
Reference in New Issue
Block a user