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:
14 files changed
+68
-22
No files matched your search
+5
@@ -0,0 +1,5 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "WorkflowReminder" ADD COLUMN "seatReferenceId" TEXT;
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "WorkflowReminder_seatReferenceId_idx" ON "WorkflowReminder"("seatReferenceId");
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user