Перейти к основному содержимому

Schema & delivery log

Generated from pattern-library/registry.json — do not edit by hand; change the registry and run bun run patterns:build.

Index card — the docs below are the canonical explanation; deep-tier pattern pages additionally carry invariants and emulation notes.

Category: Notifications · Tier: light · Maturity: proven (verified 2026-08-20 @ 1a130d67) · Risk: low — schema/reference only

The multi-channel schema adds per-user channel-connection tables, verification tokens, and push subscriptions, plus a notification_deliveries table logging per-channel send status.

When to use: Use as the reference schema when modeling a new channel connection or auditing delivery outcomes.

Docs

Code

  • src/lib/server/db/schema/notifications/ (GitHub · GitLab)

Tests

  • src/lib/server/notifications/outbox.pglite.test.ts (GitHub · GitLab)
  • src/lib/server/jobs/notification-delivery.pglite.test.ts (GitHub · GitLab)

Machine-readable record: notifications-schema-delivery-log in pattern-library/registry.json.

← Back to Pattern Library

Думаете, этот паттерн можно сделать лучше? Расскажите как.

Оставить отзыв