Notifications
Email, SMS and push notifications, with preferences per channel and event.
DataData ModelSections
Data Model
Design notes from each story. Tables belong to the owning service only.
- DELIVERY-V2-E14-01 · Notification preferences
delivery.notification_preferences(owner_id primary key, email boolean default true, sms boolean default false, push boolean default false, events jsonb, updated_at).- DELIVERY-V2-E14-02 · Phone verification and SMS
identity.usersadds phone_e164, phone_verified_at. Codes reuseidentity.login_tokens(purposephone_verify).delivery.notification_preferencesadds sms_opted_out_at.- DELIVERY-V2-E14-03 · Web push
delivery.push_subscriptions(id, owner_id, endpoint unique, p256dh, auth, device_name, created_at, last_success_at).- DELIVERY-V2-E14-04 · Notification dispatcher and log
delivery.notifications(id, owner_id, app, reference, event, channelemail|sms|push, statussent|failed|skipped, attempts, last_error, created_at). MVP1delivery.messagesrows are migrated into it.
Coming Soon...
The entities, their relationships, what every field means and the business rules will appear here when this module's design is finalized.