com.professorbutts.sports.bracket

Recommended key: the contest's rkey, so a fan has one bracket per contest. Any key is accepted; if several exist, the newest counts.

Details · record, key any
Kindrecord
Record keyany
Authoritysports.professorbutts.com
Commit rev3n2tjdj77kc2j
Indexed
cid bafyreiaruhm3hud4fnhbcsfo4plczu65ul3xlddmza5h5jslp2ftneqqeu

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Recommended key: the contest's rkey, so a fan has one bracket per contest. Any key is accepted; if several exist, the newest counts.",
      "key": "any",
      "record": {
        "properties": {
          "contest": {
            "description": "The com.professorbutts.sports.contest record.",
            "format": "at-uri",
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "group": {
            "description": "Optional com.professorbutts.sports.list of accounts (a friends group) to be ranked within.",
            "format": "at-uri",
            "type": "string"
          },
          "picks": {
            "items": {
              "ref": "#pick",
              "type": "ref"
            },
            "maxLength": 64,
            "type": "array"
          },
          "tiebreaker": {
            "description": "Guess of the combined final score of the contest's tiebreaker slot.",
            "maximum": 999,
            "minimum": 0,
            "type": "integer"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "contest",
          "picks",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "pick": {
      "properties": {
        "confidence": {
          "maximum": 64,
          "minimum": 1,
          "type": "integer"
        },
        "slot": {
          "maxLength": 32,
          "type": "string"
        },
        "team": {
          "description": "com.professorbutts.sports.team record picked to win the slot.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "slot",
        "team"
      ],
      "type": "object"
    }
  },
  "description": "One player's whole bracket for a bracket-format com.professorbutts.sports.contest, kept in the player's own repo: a predicted winner for every slot, later rounds included. Updated in place; a slot's pick only counts if an indexer saw it before that slot locked.",
  "id": "com.professorbutts.sports.bracket",
  "lexicon": 1
}