Ajout structure de jeu

This commit is contained in:
2024-12-08 16:34:06 +01:00
parent 0d96b78c33
commit b93b8b4c04
12 changed files with 124 additions and 8 deletions

View File

@ -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 {