events table

The events table in the Cord Powell Hot Dog Tracker schema has 7 columns, keyed by id, with 1 foreign key to venues. 1 column in sessions references it.

Shared context for many sessions (one event, several competitors). Optional: a session with no event is casual eating, which is most of the data.

Columns (7)

Columns of the events table
ColumnTypeConstraintsDescription
iduuidprimary key
nametextnot null
venue_iduuidreferences venues.id
held_ondatenot null
time_limit_secondsintegerOfficial limit, e.g. 600 for a 10-minute contest. NULL = untimed.
is_sanctionedbooleannot nullOfficiated by a real body vs a bet between friends.
created_attimestamptznot null

Indexes (2)

  • (venue_id)
  • (held_on)

Relationships