Peer
zomars
11/24/2022, 5:36 PMzomars
11/24/2022, 5:40 PMFernando Sánchez
11/25/2022, 11:09 AMzomars
11/25/2022, 12:05 PMzomars
11/25/2022, 12:05 PMFernando Sánchez
11/25/2022, 12:26 PMFernando Sánchez
11/28/2022, 9:21 AMFernando Sánchez
11/28/2022, 9:24 AMmodel Booking {
id Int @id @default(autoincrement())
uid String @unique
user User? @relation(fields: [userId], references: [id])
userId Int?
references BookingReference[]
eventType EventType? @relation(fields: [eventTypeId], references: [id])
eventTypeId Int?
title String
description String?
customInputs Json?
startTime DateTime
endTime DateTime
attendees Attendee[]
location String?
createdAt DateTime @default(now())
updatedAt DateTime?
status BookingStatus @default(ACCEPTED)
paid Boolean @default(false)
payment Payment[]
destinationCalendar DestinationCalendar? @relation(fields: [destinationCalendarId], references: [id])
destinationCalendarId Int?
cancellationReason String?
rejectionReason String?
dynamicEventSlugRef String?
dynamicGroupSlugRef String?
rescheduled Boolean?
fromReschedule String?
recurringEventId String?
smsReminderNumber String?
workflowReminders WorkflowReminder[]
scheduledJobs String[]
}
error: Field "scheduledJobs" in model "Booking" can't be a list. The current connector does not support lists of primitive types.
We are thinking to change this kind of fields to a Json field.
Example:
From this:
scheduledJobs String[]
to:
scheduledJobs String? @db.Text
or
scheduledJobs Json?
Let me know your thoughtszomars
11/28/2022, 3:22 PMFernando Sánchez
11/30/2022, 3:45 PMzomars
11/30/2022, 5:59 PMFernando Sánchez
12/02/2022, 9:23 AM