Stockage du fuseau horaire dans la base de données
This commit is contained in:
parent
0a89676b7e
commit
65d5ce3bc2
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user