feat: Static segments
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user