Data Layer medium complexity backend
0
Dependencies
1
Dependents
0
Entities
0
Integrations

Description

Notification Rules Table

Feature: Notification Scenarios

notification-rules-table

Responsibilities

  • Persist per-organization scenario enable/disable state
  • Store configurable threshold values (days since contact, hours pending approval, etc.)
  • Record cooldown periods per scenario per organization
  • Track default dispatch channel assignment per scenario

Interfaces

findByOrganization(organizationId: string): Promise<NotificationRule[]>
findByScenario(scenarioId: string, organizationId: string): Promise<NotificationRule | null>
upsert(rule: NotificationRule): Promise<void>
listEnabledScenarioIds(organizationId: string): Promise<string[]>

Relationships

Dependents (1)

Components that depend on this component