Aktueller Stand

This commit is contained in:
2026-01-23 14:39:23 +01:00
parent e16f6d50fb
commit 1bf95ec670
8 changed files with 519 additions and 135 deletions

View File

@@ -0,0 +1,5 @@
-- Add rule execution phase (pre/post unsubscribe)
CREATE TYPE "RulePhase" AS ENUM ('PRE_UNSUBSCRIBE', 'POST_UNSUBSCRIBE');
ALTER TABLE "Rule"
ADD COLUMN "phase" "RulePhase" NOT NULL DEFAULT 'POST_UNSUBSCRIBE';

View File

@@ -206,6 +206,7 @@ model Rule {
matchMode RuleMatchMode @default(ALL)
position Int @default(0)
stopOnMatch Boolean @default(false)
phase RulePhase @default(POST_UNSUBSCRIBE)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@ -222,6 +223,11 @@ enum RuleMatchMode {
ANY
}
enum RulePhase {
PRE_UNSUBSCRIBE
POST_UNSUBSCRIBE
}
model RuleCondition {
id String @id @default(cuid())
ruleId String