fix: Stop sending Reminders when a 'Seat' cancels the Event (#10405)

Co-authored-by: CarinaWolli <[email protected]>
Co-authored-by: Carina Wollendorfer <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-08-01 10:13:28 -04:00
1 parent a0fc045852
commit 17855251ff
14 files changed
+68 -22

No files matched your search

@@ -0,0 +1,5 @@
-- AlterTable
ALTER TABLE "WorkflowReminder" ADD COLUMN "seatReferenceId" TEXT;
-- CreateIndex
CREATE INDEX "WorkflowReminder_seatReferenceId_idx" ON "WorkflowReminder"("seatReferenceId");
+12 -10
View File
@@ -782,19 +782,21 @@ enum TimeUnit {
}
model WorkflowReminder {
id Int @id @default(autoincrement())
bookingUid String?
booking Booking? @relation(fields: [bookingUid], references: [uid])
method WorkflowMethods
scheduledDate DateTime
referenceId String? @unique
scheduled Boolean
workflowStepId Int?
workflowStep WorkflowStep? @relation(fields: [workflowStepId], references: [id])
cancelled Boolean?
id Int @id @default(autoincrement())
bookingUid String?
booking Booking? @relation(fields: [bookingUid], references: [uid])
method WorkflowMethods
scheduledDate DateTime
referenceId String? @unique
scheduled Boolean
workflowStepId Int?
workflowStep WorkflowStep? @relation(fields: [workflowStepId], references: [id])
cancelled Boolean?
seatReferenceId String?
@@index([bookingUid])
@@index([workflowStepId])
@@index([seatReferenceId])
}
enum WorkflowTemplates {