Skip to content

EventCode

  • Engine: SQL (Django model / relational table)
  • App: reference
  • Table/Collection: reference_eventcode
  • Verbose name: event code

Standard OpenTrack codes, in database not code

Field Type Column/Key Null/Default PK Choices Notes
id CharField id — PK — OpenTrack standard event code
type CharField type — RUN: Run; THROW: Throw; VJUMP: Vertical Jump; HJUMP: Horizontal Jump; RELAY: Relay Run, Jump, Throw, Relay
variant_of ForeignKey → EventCode (FK) variant_of_id null — Link to parent event
name CharField name — — English name
weight FloatField weight dflt=0 — Weight of implement, for throws
hurdle_height FloatField hurdle_height dflt=0 — Height of hurdle
hurdle_first FloatField hurdle_first dflt=0 — Distance to first hurdle
hurdle_gap FloatField hurdle_gap dflt=0 — Gap between hurdles
ordering CharField ordering — — Athletics programme sort order
note CharField note — — For variants, define where used

Field names link to their fuller explanation below.

Field details

Click a field name in the table above to jump to its explanation. Fields with no help text yet show a prompt, and are the ones to improve by adding a help_text on the model field, then regenerating.

id

  • Engine: SQL
  • Type: CharField
  • Column/Key: id
  • primary key

OpenTrack standard event code

type

  • Engine: SQL
  • Type: CharField
  • Column/Key: type
  • choices: RUN: Run; THROW: Throw; VJUMP: Vertical Jump; HJUMP: Horizontal Jump; RELAY: Relay

Run, Jump, Throw, Relay

variant_of

  • Engine: SQL
  • Type: ForeignKey → EventCode (FK)
  • Column/Key: variant_of_id
  • nullable

Link to parent event

name

  • Engine: SQL
  • Type: CharField
  • Column/Key: name

English name

weight

  • Engine: SQL
  • Type: FloatField
  • Column/Key: weight
  • default = 0

Weight of implement, for throws

hurdle_height

  • Engine: SQL
  • Type: FloatField
  • Column/Key: hurdle_height
  • default = 0

Height of hurdle

hurdle_first

  • Engine: SQL
  • Type: FloatField
  • Column/Key: hurdle_first
  • default = 0

Distance to first hurdle

hurdle_gap

  • Engine: SQL
  • Type: FloatField
  • Column/Key: hurdle_gap
  • default = 0

Gap between hurdles

ordering

  • Engine: SQL
  • Type: CharField
  • Column/Key: ordering

Athletics programme sort order

note

  • Engine: SQL
  • Type: CharField
  • Column/Key: note

For variants, define where used

Generated by docs_models management command for SQL.