Drizzle schema: lobbies, lobby_players + migration #30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Multiplayer requires database tables for game lobbies and their participants. See
documentation/game-modes.mdfor game mode details.What to do
Add lobby-related tables to the Drizzle schema and generate a migration.
Files to change
packages/db/src/db/schema.ts— addlobbiesandlobby_playerstables.pnpm --filter db generateto create migration SQL.pnpm --filter db migrateto apply locally.Schema design
Acceptance criteria
documentation/decisions.md)usertable (user.idistext, not uuid)lobbies.code(unique) andlobbies.statuspackages/shared/src/constants.ts