Database

Manage DB

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

← Overviewβ€’Competitor History & IntelligencePredictive Pacing & SAR

Entrant Historical Projectionsentrant_historical_projections

Event-specific materialized pacing projections and volunteer safety badges for an entrant.

Table Columns & Types (12)

entrant_historical_projections
ColumnPostgreSQL TypeConstraintsDefaultDocumentation
iduuid
NOT NULLPK
gen_random_uuid()Unique projection identifier.
entrantIduuid
NOT NULLFK -> entrants.idON DELETE CASCADEUNIQUE
β€”Reference to the active entrant entry.
personIduuid
NOT NULLFK -> people.idON DELETE CASCADE
β€”Reference to the competitor person.
projectedFinishSecondsinteger
nullable
β€”Predicted overall finish duration in seconds.
projectedPaceSecondsPerKmdouble precision
nullable
β€”Expected average course pace in seconds per kilometer.
projectedArrivalTimesjsonb
nullable
β€”Map of courseSplitId to expected arrival ETA timestamps and duration offsets.
confidenceBandLowSecondsinteger
nullable
β€”10th percentile aggressive arrival estimate duration.
confidenceBandHighSecondsinteger
nullable
β€”90th percentile conservative arrival estimate duration.
expectedCutoffRiskboolean
NOT NULLIndexed
falseTrue if projected arrival at any split falls within 20 minutes of official cutoff.
volunteersSarSafetyBadgetext
nullable
β€”Primary high-contrast field badge (e.g. CUTOFF_WATCH, FIRST_TIMER, ELEVATION_RISK).
projectionMethodtext
NOT NULL
'historical_pacing'Algorithm identifier used to generate the model (e.g. minetti_metabolic, historical_pacing).
computedAttimestamp with time zone
NOT NULL
now()Timestamp when projection was materialized.

Database Indexes (3)

Index NameColumnsTypeQuery Performance Rationale
entrant_historical_projections_entrant_idx(entrantId)UNIQUEGuarantees a 1:1 materialized projection per entrant.
entrant_historical_projections_person_idx(personId)INDEXAccelerates lookups of all historical projections for an athlete.
entrant_historical_projections_cutoff_risk_idx(expectedCutoffRisk)INDEXOptimizes Net Control queries for competitors at risk of missing hard cutoffs.