Notification DB

MongoDB database that holds message templates and user notification preferences. Only the Notifier reads or writes it.

  • Collections: templates (one document per message type and channel, with locale variants), preferences (channels enabled per user, push device tokens) and sent_events (event IDs already handled, for idempotency).
  • Why a document store: templates and preferences change shape often, and are always read whole by user ID or template key.

Edit ./docs/containers/notification_db.md to change this text.