Database

Manage DB

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

← Overviewβ€’Competitor History & IntelligenceAthletic Provenance

Person Race Historyperson_race_history

Individual past race results, finishes, and DNFs achieved by a person across platforms and years.

Table Columns & Types (19)

person_race_history
ColumnPostgreSQL TypeConstraintsDefaultDocumentation
iduuid
NOT NULLPK
gen_random_uuid()Unique race history result identifier.
personIduuid
NOT NULLFK -> people.idON DELETE CASCADE
β€”Competitor person record.
externalProfileIduuid
nullableFK -> person_external_profiles.idON DELETE SET NULL
β€”Provenance external profile reference.
platformexternalPlatformEnum
NOT NULLEnum
β€”Source platform (ultrasignup, strava, duv, itra, athlinks, custom).
raceNametext
NOT NULL
β€”Official name of the historical race event.
raceDatetext
NOT NULL
β€”ISO date string (YYYY-MM-DD) when the race took place.
distanceMetersdouble precision
nullable
β€”Official course distance in meters.
distanceLabeltext
nullable
β€”Standard distance category label (e.g. "50K", "100M", "Marathon").
elevationGainMetersdouble precision
nullable
β€”Total positive vertical elevation gain in meters.
elapsedSecondsinteger
nullable
β€”Official net or gun elapsed finish duration in seconds.
finishTimeFormattedtext
nullable
β€”Formatted time display string (e.g. "14:22:31").
overallPlaceinteger
nullable
β€”Overall finisher position.
genderPlaceinteger
nullable
β€”Gender division finisher position.
categoryPlaceinteger
nullable
β€”Age-group or class division finisher position.
totalFinishersinteger
nullable
β€”Total number of official finishers in that event edition.
statusraceHistoryStatusEnum
NOT NULLEnum
'finished'Outcome status: finished, dnf, dns, dq, in_progress, unknown.
sourceUrltext
nullable
β€”Direct URL to official published results page.
metadatajsonb
nullable
β€”Platform-specific fields like age at race, rank percentage, or weather notes.
createdAttimestamp with time zone
NOT NULL
now()Record creation timestamp.

PostgreSQL Enums (1)

enum "race_history_status"

ValueLabelDomain Meaning
'finished'FinishedOfficial verified finisher.
'dnf'Did Not Finish (DNF)Withdrew or cut off before official finish line.
'dns'Did Not Start (DNS)Registered but did not start the event.
'dq'Disqualified (DQ)Disqualified by race officials.
'in_progress'In ProgressActive race currently underway.
'unknown'UnknownStatus unrecorded or unparseable from external source.

Database Indexes (3)

Index NameColumnsTypeQuery Performance Rationale
person_race_history_person_idx(personId)INDEXAccelerates retrieval of career race history for a person.
person_race_history_date_idx(raceDate)INDEXEnables chronological ordering and recent activity windows.
person_race_history_distance_idx(distanceMeters)INDEXOptimizes querying comparable distance performances.