Create a new work schedule for a professional
0 = Sunday (Domingo)1 = Monday (Lunes)2 = Tuesday (Martes)3 = Wednesday (Miércoles)4 = Thursday (Jueves)5 = Friday (Viernes)6 = Saturday (Sábado)HH:MM (24-hour format)Examples:"09:00" - 9:00 AM"14:30" - 2:30 PM"08:00" - 8:00 AM00-2300-59/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/HH:MM (24-hour format)Examples:"17:30" - 5:30 PM"13:00" - 1:00 PM"20:00" - 8:00 PM00-2300-59/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/startTime(professionalID, dayOfWeek).
Example Scenarios:
✅ Valid: Dr. García works Monday 09:00-17:30
❌ Invalid: Dr. García works Monday 09:00-13:00 AND Monday 15:00-19:00
If you need to define split schedules (morning and afternoon), you must use a single continuous block or handle breaks in the appointment logic.
startTime and endTime must match the HH:MM format:
"09:00", "14:30", "08:15", "23:59""9:00" (missing leading zero), "09:00:00" (includes seconds), "25:00" (invalid hour)endTime must be strictly greater than startTime:
startTime: "09:00", endTime: "17:30"startTime: "09:00", endTime: "09:00"startTime: "17:00", endTime: "09:00"startTime and endTime range