Stockage du fuseau horaire dans la base de données

This commit is contained in:
Emmy D'Anello 2024-12-07 21:16:44 +01:00
parent 0a89676b7e
commit 65d5ce3bc2
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -29,7 +29,7 @@ model Geolocation {
accuracy Float
altitude Float
altitudeAccuracy Float
timestamp DateTime
timestamp DateTime @db.Timestamptz(3)
}
model Challenge {
@ -48,10 +48,10 @@ model ChallengeAction {
challengeId Int @unique
active Boolean @default(false)
success Boolean @default(false)
start DateTime @default(now())
end DateTime?
penaltyStart DateTime?
penaltyEnd DateTime?
start DateTime @default(now()) @db.Timestamptz(3)
end DateTime? @db.Timestamptz(3)
penaltyStart DateTime? @db.Timestamptz(3)
penaltyEnd DateTime? @db.Timestamptz(3)
moneyUpdate MoneyUpdate?
}
@ -62,8 +62,8 @@ model TrainTrip {
distance Float
from String
to String
departureTime DateTime
arrivalTime DateTime
departureTime DateTime @db.Timestamptz(3)
arrivalTime DateTime @db.Timestamptz(3)
infoJson Json
geometry String
moneyUpdate MoneyUpdate?