repair shift: schmea & db

This commit is contained in:
Muhammad Afif
2025-10-16 16:26:37 +07:00
parent b2399d486e
commit ba8c7a5346
2 changed files with 3 additions and 0 deletions

View File

@@ -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({