Merge branch 'main' into feature/scheduling
This commit is contained in:
commit
b2812deeff
49 files changed
+2836
-4630
No files matched your search
@@ -0,0 +1,13 @@
|
||||
-- CreateTable
|
||||
CREATE TABLE "EventTypeCustomInput" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"eventTypeId" INTEGER NOT NULL,
|
||||
"label" TEXT NOT NULL,
|
||||
"type" TEXT NOT NULL,
|
||||
"required" BOOLEAN NOT NULL,
|
||||
|
||||
PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "EventTypeCustomInput" ADD FOREIGN KEY ("eventTypeId") REFERENCES "EventType"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
@@ -23,6 +23,7 @@ model EventType {
|
||||
bookings Booking[]
|
||||
availability Schedule[]
|
||||
eventName String?
|
||||
customInputs EventTypeCustomInput[]
|
||||
}
|
||||
|
||||
model Credential {
|
||||
@@ -148,3 +149,13 @@ model SelectedCalendar {
|
||||
externalId String
|
||||
@@id([userId,integration,externalId])
|
||||
}
|
||||
|
||||
model EventTypeCustomInput {
|
||||
id Int @id @default(autoincrement())
|
||||
eventTypeId Int
|
||||
eventType EventType @relation(fields: [eventTypeId], references: [id])
|
||||
label String
|
||||
type String
|
||||
required Boolean
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user