mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-03 16:38:34 +02:00
🌐 Better way to store times (#1037)
This commit is contained in:
parent
7b996aa24f
commit
08729168d2
14 changed files with 150 additions and 29 deletions
|
@ -196,7 +196,8 @@ model Participant {
|
|||
|
||||
model Option {
|
||||
id String @id @default(cuid())
|
||||
start DateTime @db.Timestamp(0)
|
||||
start DateTime @db.Timestamp(0) // @deprecated - use startTime
|
||||
startTime DateTime @db.Timestamp(0) @map("start_time")
|
||||
duration Int @default(0) @map("duration_minutes")
|
||||
pollId String @map("poll_id")
|
||||
poll Poll @relation(fields: [pollId], references: [id])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue