This commit is contained in:
2025-08-09 15:48:14 -04:00
parent 2ff5d781fd
commit 5e8978c550
9 changed files with 90 additions and 40 deletions

View File

@@ -16,9 +16,17 @@ model Game {
instances Instance[]
}
model Instance {
id Int @id @default(autoincrement())
gameKey String
game Game @relation(fields: [gameKey], references: [key])
gameState Json
model Human {
key String @id
name String
Instance Instance[]
}
model Instance {
id String @id @default(cuid(2))
createdByKey String
createdBy Human @relation(fields: [createdByKey], references: [key])
gameKey String
game Game @relation(fields: [gameKey], references: [key])
gameState Json
}