Skip to content

feat(db): add player board system#194

Merged
rmyers merged 1 commit into
mainfrom
181-player-boards
Jun 7, 2026
Merged

feat(db): add player board system#194
rmyers merged 1 commit into
mainfrom
181-player-boards

Conversation

@rmyers

@rmyers rmyers commented Jun 2, 2026

Copy link
Copy Markdown
Member

Add 3 optional foreign key columns (board_1_id, board_2_id, board_3_id) to the players table, referencing boards. Each player can have up to 3 active project boards assigned with partial indexes for fast lookups.

  • Migration: add 3 FK columns + partial indexes on players table
  • SQLC queries: GetPlayerBoards, AssignBoardToPosition, SwapBoardPosition, ListPlayersWithBoards

Closes: #181

Add 3 optional foreign key columns (board_1_id, board_2_id, board_3_id) to
the players table, referencing boards. Each player can have up to 3 active
project boards assigned with partial indexes for fast lookups.

- Migration: add 3 FK columns + partial indexes on players table
- SQLC queries: GetPlayerBoards, AssignBoardToPosition, SwapBoardPosition,
  ListPlayersWithBoards

Closes: #181
@rmyers rmyers merged commit 541ab79 into main Jun 7, 2026
1 check passed
@rmyers rmyers deleted the 181-player-boards branch June 7, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Task 1: Add 3 board FK columns to Player

1 participant