tokens fr
This commit is contained in:
@@ -17,16 +17,21 @@ model Game {
|
||||
}
|
||||
|
||||
model Human {
|
||||
key String @id @default(cuid(2))
|
||||
name String @default("")
|
||||
Instance Instance[]
|
||||
key String @id @default(cuid())
|
||||
token String @unique @default(cuid())
|
||||
name String @default("__name__")
|
||||
lastActive DateTime @default(now())
|
||||
|
||||
playingInstances Instance[]
|
||||
}
|
||||
|
||||
model Instance {
|
||||
id String @id @default(cuid(2))
|
||||
id String @id @default(cuid())
|
||||
createdByKey String
|
||||
createdBy Human @relation(fields: [createdByKey], references: [key])
|
||||
gameKey String
|
||||
game Game @relation(fields: [gameKey], references: [key])
|
||||
gameState Json
|
||||
|
||||
players Human[]
|
||||
|
||||
game Game @relation(fields: [gameKey], references: [key])
|
||||
gameState Json
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user