{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A study challenge between friends. Participants link to it with a challengeEntry.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "endsAt": {
            "format": "datetime",
            "type": "string"
          },
          "kind": {
            "description": "studyDays: most study days wins. everyDay: study every day, the last one standing wins.",
            "enum": [
              "studyDays",
              "everyDay"
            ],
            "type": "string"
          },
          "startsAt": {
            "format": "datetime",
            "type": "string"
          },
          "title": {
            "maxGraphemes": 100,
            "maxLength": 1000,
            "type": "string"
          }
        },
        "required": [
          "title",
          "kind",
          "startsAt",
          "endsAt",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "space.opendeck.challenge",
  "lexicon": 1
}
