Database

Manage DB

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

← Overviewβ€’Access & StaffingStaff Roster

Event Group Staffevent_group_staff

Volunteers, checkpoint captains, officials, and medical staff for an event group.

Table Columns & Types (5)

event_group_staff
ColumnPostgreSQL TypeConstraintsDefaultDocumentation
iduuid
NOT NULLPK
gen_random_uuid()Unique staff assignment identifier.
eventGroupIduuid
NOT NULLFK -> event_groups.id
β€”Event group.
personIduuid
NOT NULLFK -> people.id
β€”Staff member.
rolesstaff_role[]
NOT NULL
β€”One or more of volunteer, checkpoint_captain, official, medical.
createdAttimestamp with time zone
NOT NULL
now()When the person was rostered.

PostgreSQL Enums (1)

enum "staff_role"

ValueLabelDomain Meaning
'volunteer'VolunteerRecords times at assigned timing points.
'checkpoint_captain'Checkpoint CaptainLeads assigned timing points and may correct entries made there.
'official'OfficialEvent-group-wide timing authority: corrections, time allowances, DQs.
'medical'Medical / SARSees emergency contacts and safety information.

Database Indexes (2)

Index NameColumnsTypeQuery Performance Rationale
event_group_staff_group_person_idx(eventGroupId, personId)UNIQUEOne roster row per person per event group.
event_group_staff_person_idx(personId)INDEXLists a person's staffing assignments.