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-cup', 'eng-1'. Lowercase a-z, 0-9 and '-'. Never reused once minted.

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

Showing version bafyreig6jyll44p4hmtat5fvnzifmp6dldwkwifha4stjd6ffizjcfzz44. Show the latest

Record

record · key any

Properties

aliases

array

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

  • maxLength: 16
itemsstring
  • maxLength: 64

country

string

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

  • maxLength: 3
  • maxLength: 16

gender

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

level

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

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

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.