Database

Manage DB

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

← Overviewβ€’Read Plane (Standings)Materialized Projection

Scored Split Timesscored_split_times

Materialized leaderboard standings, cumulative elapsed times, dwell seconds, and regularity penalties.

Table Columns & Types (16)

scored_split_times
ColumnPostgreSQL TypeConstraintsDefaultDocumentation
iduuid
NOT NULLPK
gen_random_uuid()Unique scored split identifier.
entrantIduuid
NOT NULLFK -> entrants.id
β€”Competitor.
courseSplitIduuid
NOT NULLFK -> courseSplits.id
β€”Milestone checkpoint.
lapinteger
NOT NULL
1Lap number for multi-lap events.
subSplitKindsubSplitKindEnum
NOT NULLEnum
β€”'in' (arrival), 'out' (departure), or 'point' (flying line).
absoluteTimeUtctimestamp(3) with time zone
NOT NULL
β€”Official UTC timestamp of checkpoint crossing.
elapsedSecondsdouble precision
NOT NULL
β€”Total elapsed time from start in seconds.
dwellSecondsinteger
nullable
β€”Time spent resting inside checkpoint between IN and OUT.
segmentPaceSecondsPerKmdouble precision
nullable
β€”Calculated pace over the preceding course segment.
tsdDeviationSecondsdouble precision
nullable
β€”Motorsport TSD regularity target variance (Actual - Ideal).
penaltyPointsdouble precision
NOT NULL
0Accrued regularity or infraction penalty points.
stoppedHereboolean
NOT NULL
falseIndicates competitor terminated race effort at this station.
dataStatusdataStatusEnum
NOT NULLEnum
'valid'Status: 'provisional', 'valid', 'questionable', 'bad', 'confirmed'.
governingRawEventIduuid
nullableFK -> rawTimingEvents.id
β€”Raw telemetry pulse that verified this split.
createdAttimestamp with time zone
NOT NULL
now()Projection calculation timestamp.
updatedAttimestamp with time zone
NOT NULL
now()Last adjustment timestamp.

PostgreSQL Enums (1)

enum "data_status"

ValueLabelDomain Meaning
'provisional'ProvisionalNewly calculated, pending reconciliation.
'valid'ValidClean, chronological, plausible velocity.
'questionable'QuestionablePace anomaly or skipped upstream split.
'bad'BadMathematically impossible (negative duration).
'confirmed'ConfirmedManually verified and locked by Timing Director.

Database Indexes (3)

Index NameColumnsTypeQuery Performance Rationale
scored_split_unique_idx(entrantId, courseSplitId, lap, subSplitKind)UNIQUEGuarantees that each entrant can only have one recorded split per milestone and lap.
scored_split_elapsed_idx(courseSplitId, elapsedSeconds)INDEXHigh-speed index for generating instant milestone leaderboards.
scored_split_entrant_idx(entrantId)INDEXSpeeds up athlete journey and split matrix loading on individual result pages.