feat: Add type to campaign
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "campaigns" ADD COLUMN "type" "TemplateType" NOT NULL DEFAULT 'MARKETING';
|
||||
@@ -291,6 +291,9 @@ model Campaign {
|
||||
fromName String?
|
||||
replyTo String?
|
||||
|
||||
// Campaign type
|
||||
type TemplateType @default(MARKETING)
|
||||
|
||||
// Audience selection
|
||||
audienceType CampaignAudienceType @default(ALL)
|
||||
audienceCondition Json? // For FILTERED: manual filter condition with AND/OR logic (same structure as Segment.condition)
|
||||
|
||||
Reference in New Issue
Block a user