Ajout structure de jeu
This commit is contained in:
@ -12,11 +12,18 @@ model Player {
|
||||
name String @unique
|
||||
password String
|
||||
money Int @default(0)
|
||||
currentRunner Boolean @default(false)
|
||||
actions ChallengeAction[]
|
||||
geolocations Geolocation[]
|
||||
moneyUpdates MoneyUpdate[]
|
||||
trips TrainTrip[]
|
||||
runningGame Game?
|
||||
}
|
||||
|
||||
model Game {
|
||||
id Int @id @default(autoincrement())
|
||||
started Boolean @default(false)
|
||||
currentRunner Player? @relation(fields: [currentRunnerId], references: [id])
|
||||
currentRunnerId Int? @unique
|
||||
}
|
||||
|
||||
model Geolocation {
|
||||
|
Reference in New Issue
Block a user