Database
Manage DB
Browse collections and tables, and watch the CQRS timing pipeline.
Split Time Auditssplit_time_audits
Forensic audit log capturing every manual status change, timestamp edit, or steward recalculation.
π‘
Operational Purpose & Edge Invariants
Ensures compliance with USATF, UCI, and FIA timing integrity rules. Whenever an official manually overrides a competitor's split time, validates a questionable time, or issues a disqualification, the previous and new states are captured as immutable JSON with author ID and mandatory change reason.
Relational Connections (1)
Table Columns & Types (8)
split_time_audits| Column | PostgreSQL Type | Constraints | Default | Documentation |
|---|---|---|---|---|
| id | uuid | NOT NULLPK | gen_random_uuid() | Unique audit record identifier. |
| splitTimeId | uuid | NOT NULLFK -> scoredSplitTimes.id | β | Modified scored split. |
| action | text | NOT NULL | β | Audit action: 'CREATED', 'UPDATED', 'DELETED', 'REBUILT', 'CONFIRMED'. |
| previousState | jsonb | nullable | β | Snapshot of record state prior to modification. |
| newState | jsonb | nullable | β | Snapshot of record state post modification. |
| changedByPersonId | uuid | NOT NULLFK -> people.id | β | Official or steward who made the change. |
| changeReason | text | NOT NULL | β | Mandatory justification for regulatory compliance. |
| createdAt | timestamp with time zone | NOT NULL | now() | Audit log creation timestamp. |
Database Indexes (1)
| Index Name | Columns | Type | Query Performance Rationale |
|---|---|---|---|
| split_time_audits_split_idx | (splitTimeId) | INDEX | Accelerates retrieval of modification history for a disputed competitor split. |