From 65d5ce3bc2f41f1dd7277f34b69dbb5717e5ba5f Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Sat, 7 Dec 2024 21:16:44 +0100 Subject: [PATCH] =?UTF-8?q?Stockage=20du=20fuseau=20horaire=20dans=20la=20?= =?UTF-8?q?base=20de=20donn=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/prisma/schema.prisma | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/server/prisma/schema.prisma b/server/prisma/schema.prisma index a84b425..e6e372f 100644 --- a/server/prisma/schema.prisma +++ b/server/prisma/schema.prisma @@ -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?