{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "ILLI's additions to one schedule entry of a parent (ai.newnal.mydata.profileScheduleActivities): the alarm grade, the image shown on the device's alarm card, the sentence template the guardian filled, and the group that ties the two records of an entry made for both parents. Record key = the schedule entry's record key. Written by the root admin's session into the root admin's repo of the family sphere (dev-spec 21 §4.3).",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "grade": {
            "description": "priority = 우선 알림 (screen, light and sound), normal = 일반 알림 (screen only), none = recorded only, no alarm; the schedule entry then has no reminders.",
            "knownValues": [
              "priority",
              "normal",
              "none"
            ],
            "type": "string"
          },
          "group": {
            "description": "The same value on the records of both parents when the entry was made for both; the app edits and deletes them together and the device rings once.",
            "maxLength": 64,
            "type": "string"
          },
          "image": {
            "accept": [
              "image/jpeg",
              "image/png"
            ],
            "description": "Shown on the device's alarm card; absent means the category icon.",
            "maxSize": 2000000,
            "type": "blob"
          },
          "slot": {
            "description": "The parent slot, 1 or 2.",
            "maximum": 2,
            "minimum": 1,
            "type": "integer"
          },
          "subject": {
            "description": "The schedule entry this record extends (URI and CID).",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "template": {
            "ref": "#template",
            "type": "ref"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "subject",
          "slot",
          "grade",
          "template",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "template": {
      "properties": {
        "blank": {
          "description": "What the guardian typed into the category's sentence template; the schedule entry's eventName is the completed sentence.",
          "maxGraphemes": 60,
          "maxLength": 600,
          "type": "string"
        },
        "category": {
          "description": "The ILLI entry type, as the platform's category token.",
          "knownValues": [
            "medication",
            "birthday",
            "anniversary",
            "family_event",
            "medical_visit",
            "appointment",
            "routine"
          ],
          "type": "string"
        }
      },
      "required": [
        "category",
        "blank"
      ],
      "type": "object"
    }
  },
  "id": "ai.newnal.illi.family.scheduleExtra",
  "lexicon": 1
}
