{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A quiz league with quiz masters and teams",
      "key": "tid",
      "record": {
        "properties": {
          "name": {
            "description": "Name of the league",
            "maxGraphemes": 100,
            "maxLength": 1000,
            "type": "string"
          },
          "quizMasters": {
            "description": "DIDs of quiz masters who can run quizzes for this league",
            "items": {
              "format": "did",
              "type": "string"
            },
            "maxLength": 5,
            "minLength": 1,
            "type": "array"
          },
          "teams": {
            "description": "Teams participating in this league",
            "items": {
              "ref": "com.atproto.repo.strongRef",
              "type": "ref"
            },
            "maxLength": 100,
            "type": "array"
          }
        },
        "required": [
          "name",
          "quizMasters",
          "teams"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "pub.quizzy.league",
  "lexicon": 1
}
