wip but I need to sleep

This commit is contained in:
2025-08-09 01:40:42 -04:00
parent a7e339a8ce
commit 2ff5d781fd
12 changed files with 213 additions and 82 deletions

View File

@@ -8,17 +8,17 @@ datasource db {
}
model Game {
id Int @id @default(autoincrement())
key String @id
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
name String @unique
name String
rules String?
instances Instance[]
}
model Instance {
id Int @id @default(autoincrement())
gameId Int
game Game @relation(fields: [gameId], references: [id])
id Int @id @default(autoincrement())
gameKey String
game Game @relation(fields: [gameKey], references: [key])
gameState Json
}