Products · Delivery V2

Notifications

Email, SMS and push notifications, with preferences per channel and event.

Planned, not builtModule 15 of 15

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.users adds phone_e164, phone_verified_at. Codes reuse identity.login_tokens (purpose phone_verify). delivery.notification_preferences adds 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, channel email|sms|push, status sent|failed|skipped, attempts, last_error, created_at). MVP1 delivery.messages rows 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.