[IMP]pms_api_rest: added alerts per day service and datamodel

This commit is contained in:
braisab
2022-04-25 20:17:57 +02:00
committed by Darío Lodeiros
parent 926580fc60
commit fd71d882ea
2 changed files with 48 additions and 0 deletions

View File

@@ -65,3 +65,9 @@ class PmsCalendarInfo(Datamodel):
nextLineSplitted = fields.Boolean(required=False, allow_none=True)
previousLineSplitted = fields.Boolean(required=False, allow_none=True)
closureReason = fields.String(required=False, allow_none=True)
class PmsCalendarAlertsPerDay(Datamodel):
_name = "pms.calendar.alerts.per.day"
date = fields.String(required=True, allow_none=False)
overbooking = fields.Boolean(required=True, allow_none=False)