Notification Audit Log Store
Component Detail
Data Layer
low complexity
Shared Component
backend
0
Dependencies
2
Dependents
2
Entities
0
Integrations
Description
Persists a record of every dispatched notification, capturing rule ID, recipient user ID, delivery channel, template ID, payload snapshot, and delivery status. Serves a dual purpose: provides the deduplication source for the rule engine's cooldown checks, and maintains an audit trail of all scenario-triggered notifications for compliance and coordinator review.
notification-audit-log-store
Responsibilities
- Insert notification dispatch records with rule ID, user ID, channel, template, and timestamp
- Provide indexed query interface for deduplication lookups by user and rule within a time window
- Track and update delivery status (pending, sent, failed, delivered) per notification record
- Support filtered audit log queries for compliance and coordinator oversight
Interfaces
insertNotificationRecord(record: NotificationRecord)
findByUserAndRule(userId: string, ruleId: string, since: Date)
updateDeliveryStatus(notificationId: string, status: DeliveryStatus)
getAuditLog(filters: AuditLogFilters)
deleteExpiredRecords(olderThan: Date)
Relationships
Dependents (2)
Components that depend on this component
Related Data Entities (2)
Data entities managed by this component