{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Record in the participant's repo claiming a day of a site.mochott.adventCalendar.",
      "key": "tid",
      "record": {
        "properties": {
          "article": {
            "description": "The post written for this day: a site.mochott.article or site.standard.document record.",
            "format": "at-uri",
            "type": "string"
          },
          "calendar": {
            "description": "The site.mochott.adventCalendar record this entry joins.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "createdAt": {
            "description": "Timestamp when the day was claimed.",
            "format": "datetime",
            "type": "string"
          },
          "day": {
            "description": "1-based day of the calendar.",
            "maximum": 31,
            "minimum": 1,
            "type": "integer"
          },
          "plan": {
            "description": "What the participant plans to write about, shown before the post is published.",
            "maxGraphemes": 100,
            "maxLength": 1000,
            "type": "string"
          },
          "updatedAt": {
            "description": "Timestamp when the entry was last updated.",
            "format": "datetime",
            "type": "string"
          },
          "url": {
            "description": "The post written for this day when it is not an AT Protocol record. Accepted only when the calendar allows external posts.",
            "format": "uri",
            "type": "string"
          }
        },
        "required": [
          "calendar",
          "day",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A participant's claim of one day of an advent calendar, and later the post written for it.",
  "id": "site.mochott.adventEntry",
  "lexicon": 1,
  "revision": 1
}
