{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A study calendar event (exam/test/lesson goal date). rkey is the client's localId (see the `localId` property below), written via putRecord — this makes a retried push idempotent (a network-timeout retry overwrites the same rkey instead of creating a duplicate) rather than requiring the client to track which pushes already succeeded.",
      "key": "any",
      "record": {
        "properties": {
          "accent": {
            "description": "Accent color (hex code).",
            "maxLength": 7,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "date": {
            "description": "Event calendar date in YYYY-MM-DD format; not a timestamp.",
            "type": "string"
          },
          "endDate": {
            "description": "End date for multi-day events in YYYY-MM-DD format; absent means a single-day event.",
            "type": "string"
          },
          "localId": {
            "description": "Matches local StudyEvent.id and equals this record's own rkey (see the record-level description above).",
            "maxLength": 100,
            "type": "string"
          },
          "note": {
            "maxLength": 1500,
            "type": "string"
          },
          "notifyDayBefore": {
            "type": "boolean"
          },
          "notifyOnDay": {
            "type": "boolean"
          },
          "pdsRkey": {
            "description": "Canonical migrated TID rkey. It points to a create-only copy while the legacy source record remains readable.",
            "format": "tid",
            "type": "string"
          },
          "title": {
            "maxLength": 600,
            "type": "string"
          },
          "type": {
            "knownValues": [
              "exam",
              "test",
              "lesson",
              "other"
            ],
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "localId",
          "title",
          "date",
          "type",
          "accent",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.studynext.event",
  "lexicon": 1
}
