com.professorbutts.sports.league

Record key is the league code used as the first part of every slug, e.g. 'nfl', 'cfb', 'cfb-fcs', 'f1', 'nascar', 'epl'. Lowercase a-z, 0-9 and '-'. Never reused once minted.

Details · record, key any
Kindrecord
Record keyany
Authoritysports.professorbutts.com
Commit rev3n2tjcpjza22j
Indexed

Record

record · key any

Properties

ageGroup

string

Same values as team.ageGroup. Leave out for the senior game, e.g. 'under-20' for an under-20 World Cup.

  • maxLength: 32
  • knownValues: senior | under-23 | under-21 | under-20 | under-19 | under-18

aliases

array

Other names people use, e.g. 'Premier League', 'EPL'.

  • maxLength: 16
itemsstring
  • maxLength: 64

category

string

What kind of competition this is, using 2nd Screen's values: 'league' has a season table (a college division such as FCS is a league with a parent), 'tournament' is a single event like a World Cup, 'series' is a season of separate events with their own results (motorsport series, golf tours), 'fixture-group' is a loose set of games like international friendlies.

  • maxLength: 32
  • knownValues: league | tournament | series | fixture-group

country

string

ISO 3166-1 alpha-3, when the league is national.

  • maxLength: 3

Same values as team.discipline. Leave out for the standard game.

  • maxLength: 32
  • knownValues: standard | wheelchair | intellectual-disability | physical-disability
  • maxLength: 16

gender

string
  • maxLength: 16
  • knownValues: men | women | mixed

level

string
  • maxLength: 32
  • knownValues: pro | college | international | minor | amateur

multiSport

boolean

True exactly when sport is 'multi', e.g. the Olympics.

name

requiredstring

e.g. 'NCAA Division I FCS Football'.

  • maxLength: 128

parent

string · at-uri

Wider league this is part of, e.g. 'cfb-fcs' points at 'cfb'. Teams that move between divisions keep their slug under the parent code.

shortName

string

e.g. 'FCS'.

  • maxLength: 32

sport

requiredstring
  • maxLength: 64
  • knownValues: football | basketball | baseball | hockey | soccer | rugby | golf | motorsport | cricket | multi

League code used in this league's team slugs, when it differs from the record key, e.g. 'cfb' for 'cfb-fcs'.

  • maxLength: 32

updatedAt

requiredstring · datetime

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • rkey is league-abbreviation lowercase, e.g. nfl-cin, cfb-cin, f1-mclaren

  • A competition or fixture group with a permanent identity, independent of season editions or official accounts.

  • One entry in the shared slug map: an outside ID, an old slug or a readable slug, pointing at the canonical league, team, person, game or event record. Lets anyone resolve an ID with a single getRecord call, no index needed.

  • A single sporting event and its current state. One record per game, updated in place as the game progresses.