feat: Static segments

This commit is contained in:
Dries Augustyns
2026-02-23 13:57:32 +01:00
parent 21af8fe05e
commit 4b51e386e3
10 changed files with 664 additions and 87 deletions
+10 -2
View File
@@ -199,8 +199,11 @@ model Segment {
name String
description String?
// Filter condition (evaluated dynamically)
condition Json
// Segment type: DYNAMIC (filter-based) or STATIC (manually managed)
type SegmentType @default(DYNAMIC)
// Filter condition (evaluated dynamically, null for STATIC segments)
condition Json?
// Nested filter structure with AND/OR logic:
// {
// logic: "OR",
@@ -747,6 +750,11 @@ enum StepExecutionStatus {
FAILED // Failed with error
}
enum SegmentType {
DYNAMIC // Filter-based segment evaluated against contacts at query time
STATIC // Manually curated list of contacts managed via memberships
}
enum EmailSourceType {
TRANSACTIONAL // Sent via API call
CAMPAIGN // Sent as part of broadcast