title: Schedule
x-tags:
  - Catalog
type: object
description: Defines a schedule that may be associated with another catalog model.
properties:
  uuid:
    type: string
    format: uuid
    description: The schedule's unique identifier.
    readOnly: true
  model_type:
    enum:
      - schedule
    readOnly: true
  name:
    type: string
    minLength: 1
    maxLength: 255
    description: The schedule's name.
    example: Breakfast Schedule
  tags:
    type: array
    uniqueItems: true
    description: The schedule's tags.
    items:
      type: string
      format: uuid
  entries:
    type: array
    description: The periods of time throughout the week that the schedule applies.
    items:
      $ref: ./ScheduleEntry.yaml
  exceptions:
    type: array
    description: The date-time ranges that the schedule should not apply.
    items:
      $ref: ./ScheduleException.yaml
  created_at:
    type: string
    description: The date-time that the schedule was created.
    format: date-time
    readOnly: true
required:
  - uuid
  - model_type
  - name
  - tags
  - entries
  - exceptions
  - created_at
