- Implemented user notification preferences table for managing default notification settings. - Created sag_reminders table to define reminder rules with various trigger types and recipient configurations. - Developed sag_reminder_queue for processing reminder events triggered by status changes or scheduled times. - Added sag_reminder_logs to track reminder notifications and user interactions. - Introduced frontend notification system using Bootstrap 5 Toast for displaying reminders. - Created email template for sending reminders with case details and action links. - Implemented rate limiting for user notifications to prevent spamming. - Added triggers and functions for automatic updates and reminder processing.
10 lines
273 B
SQL
10 lines
273 B
SQL
-- Migration 094: Add deferred_until to sag_sager
|
|
-- Dato: 3. februar 2026
|
|
|
|
ALTER TABLE sag_sager
|
|
ADD COLUMN IF NOT EXISTS deferred_until TIMESTAMP;
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_sag_sager_deferred_until
|
|
ON sag_sager(deferred_until)
|
|
WHERE deleted_at IS NULL;
|