feat(rooms): migrate multiplayer room storage from memory to PostgreSQL

This commit is contained in:
jessy-david-dev
2026-04-11 17:37:56 +02:00
parent e6aa0badac
commit 552bb17c15
12 changed files with 2103 additions and 84 deletions
+16
View File
@@ -42,6 +42,22 @@ model DailyPuzzle {
results DailyResult[]
}
model Room {
code String @id
players Json @default("[]")
phase String @default("waiting")
round Int @default(0)
totalRounds Int @default(3)
maxPlayers Int @default(16)
startArticle String @default("")
targetArticle String @default("")
roundWinner String?
countdownStart BigInt?
roundStart BigInt?
createdAt BigInt
updatedAt DateTime @updatedAt
}
model DailyResult {
id String @id @default(uuid(7))
puzzleId String