closer
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user