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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| name | text | not null | |
| venue_id | uuid | references venues.id | |
| held_on | date | not null | |
| time_limit_seconds | integer | Official limit, e.g. 600 for a 10-minute contest. NULL = untimed. | |
| is_sanctioned | boolean | not null | Officiated by a real body vs a bet between friends. |
| created_at | timestamptz | not null |
Indexes (2)
(venue_id)(held_on)
Relationships
events.venue_idreferencesvenues.idsessions.event_idreferencesevents