repair shift: schmea & db
This commit is contained in:
@@ -8,6 +8,7 @@ const timePattern = /^([01]\d|2[0-3]):([0-5]\d)(:[0-5]\d)?$/;
|
||||
|
||||
const insertShiftSchema = Joi.object({
|
||||
shift_name: Joi.string().max(100).required(),
|
||||
is_active:Joi.boolean().required(),
|
||||
start_time: Joi.string()
|
||||
.pattern(timePattern)
|
||||
.required()
|
||||
@@ -24,6 +25,7 @@ const insertShiftSchema = Joi.object({
|
||||
|
||||
const updateShiftSchema = Joi.object({
|
||||
shift_name: Joi.string().max(100),
|
||||
is_active:Joi.boolean(),
|
||||
start_time: Joi.string()
|
||||
.pattern(timePattern)
|
||||
.messages({
|
||||
|
||||
Reference in New Issue
Block a user