sessions table

The sessions table in the Cord Powell Hot Dog Tracker schema has 13 columns, keyed by id, with 3 foreign keys to eaters, events and venues. 2 columns in session_dogs and personal_records reference it.

One sitting. hours_fasted and body_weight_kg are here because "why was that run good?" is unanswerable after the fact -- they cost two columns now and cannot be reconstructed later.

Columns (13)

Columns of the sessions table
ColumnTypeConstraintsDescription
iduuidprimary key
eater_iduuidnot null, references eaters.idUsually the principal (Cord). Rival sessions exist so head-to-head is possible.
event_iduuidreferences events.idNULL for casual/practice eating.
venue_iduuidreferences venues.idSet directly when there is no event. If event_id is set, prefer the venue on the event.
kindsession_kindnot null
statussession_statusnot null
started_attimestamptznot null
ended_attimestamptzNULL while in_progress.
time_limit_secondsintegerSelf-imposed limit for practice runs; copied from the event for contests.
hours_fastednumeric(4,1)Hours since the last meal. The cheapest covariate that actually explains a good run.
body_weight_kgnumeric(5,2)Same-day weight. Capacity tracks weight over a career; without this the trend is uninterpretable.
notestext
created_attimestamptznot null

Indexes (4)

  • (eater_id)
  • (event_id)
  • (venue_id)
  • (eater_id, started_at)

Relationships