Database

Manage DB

Browse collections and tables, and watch the CQRS timing pipeline.

← Overviewβ€’Operations & AuditsDisaster Recovery

Time Allowancestime_allowances

Mandatory medical holds, safety stops, and hazard holds deducted from net elapsed time.

Table Columns & Types (10)

time_allowances
ColumnPostgreSQL TypeConstraintsDefaultDocumentation
iduuid
NOT NULLPK
gen_random_uuid()Unique time allowance identifier.
entrantIduuid
NOT NULLFK -> entrants.id
β€”Competitor.
splitIduuid
NOT NULLFK -> courseSplits.id
β€”Checkpoint location.
startTimetimestamp with time zone
NOT NULL
β€”Hold start timestamp.
endTimetimestamp with time zone
NOT NULL
β€”Hold release timestamp.
durationSecondsinteger
NOT NULL
β€”Total credited seconds deducted from net elapsed time.
reasontext
NOT NULL
β€”Hold reason: 'medical_hold', 'hazard_hold', 'gear_check'.
authorizedByPersonIduuid
NOT NULLFK -> people.id
β€”Authorizing medical officer or race steward.
notestext
nullable
β€”Detailed medical or safety incident narrative.
createdAttimestamp with time zone
NOT NULL
now()Creation timestamp.

Database Indexes (1)

Index NameColumnsTypeQuery Performance Rationale
time_allowances_entrant_idx(entrantId)INDEXAccelerates retrieval of all active credits during net standings calculations.