Database

Manage DB

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

← Overviewβ€’Core HierarchyRace Instance

Eventsevents

A specific race contest within an EventGroup running over a Course.

Table Columns & Types (8)

events
ColumnPostgreSQL TypeConstraintsDefaultDocumentation
iduuid
NOT NULLPK
gen_random_uuid()Unique event identifier.
eventGroupIduuid
NOT NULLFK -> eventGroups.id
β€”Parent event group.
courseIduuid
NOT NULLFK -> courses.id
β€”Physical course.
nametext
NOT NULL
β€”Race title (e.g. "100 Mile Championship").
lapsRequiredinteger
NOT NULL
1Number of full course circuits required to complete the race.
scheduledStarttimestamp with time zone
NOT NULL
β€”Official scheduled gun time.
actualStarttimestamp with time zone
nullable
β€”Observed actual gun firing timestamp.
createdAttimestamp with time zone
NOT NULL
now()Creation timestamp.

Database Indexes (2)

Index NameColumnsTypeQuery Performance Rationale
events_group_idx(eventGroupId)INDEXAccelerates retrieval of all race divisions within an event weekend.
events_course_idx(courseId)INDEXEnables fast lookup of events sharing a specific course track.