-
Notifications
You must be signed in to change notification settings - Fork 9
Add the PostgreSQL Room and RaceSession schema #203
Copy link
Copy link
Open
Labels
area: dataMongoDB, PostgreSQL, migrations, backfills, and data integrityMongoDB, PostgreSQL, migrations, backfills, and data integrityarea: resultsSolves, scrambles, history, statistics, and exportsSolves, scrambles, history, statistics, and exportsenhancementNew feature or requestNew feature or requestpriority: P1High-priority work for the next delivery cycleHigh-priority work for the next delivery cycle
Description
Metadata
Metadata
Assignees
Labels
area: dataMongoDB, PostgreSQL, migrations, backfills, and data integrityMongoDB, PostgreSQL, migrations, backfills, and data integrityarea: resultsSolves, scrambles, history, statistics, and exportsSolves, scrambles, history, statistics, and exportsenhancementNew feature or requestNew feature or requestpriority: P1High-priority work for the next delivery cycleHigh-priority work for the next delivery cycle
Part of #199.
Goal
Reshape the canonical Prisma/PostgreSQL model so rooms can own multiple independent race sessions without changing production read ownership yet.
Schema direction
app.rooms.app.race_sessionswith room, event, format/mode, scramble source, state, scheduled times, and actual start/end times.cube_event,started, andnext_solve_atfrom their conceptual ownership on Room to RaceSession.race_session_id.room_idonly through an expand-and-contract migration.Migration requirements
Acceptance criteria
Dependencies