Saltar al contenido

app.notification_deliveries

TablaParticionada por mesSeguridad a nivel de fila activa

One notification on one outside channel (Email, SMS, Push), partitioned on the notification's month so both expire together. Written by private.notify and the delivery worker.

Clave primaria: id, notification_created_at

Columnas de app.notification_deliveries
ColumnaTipoAdmite nulosDescripción
iduuidNoDelivery id, UUID v7.
org_iduuidNoOwning org, derived from app.notifications on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id
notification_iduuidNoNotification delivered.Hace referencia a private.notifications_p202609.id
notification_created_attimestamp with time zoneNoCreation time of the notification: its partition key, checked by the foreign key.Hace referencia a private.notifications_p202609.created_at
channelapp.notification_channelNoEmail, SMS or Push.
message_statusapp.message_statusNoQueued, Deferred, Digest, Sent, Delivered, Bounced, Failed or Suppressed.
deliver_aftertimestamp with time zoneNoEarliest send time: now, or the end of the recipient's quiet hours.
attempt_countsmallintNoSend attempts so far.
provider_message_idtextSíMessage id returned by Resend, Twilio or Expo.
last_errortextSíError of the latest failed attempt, or why the delivery was suppressed.
sent_attimestamp with time zoneSíWhen the provider accepted the message.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidSíPerson who inserted the row, or null for a platform process. Set by the database.Hace referencia a app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidSíPerson who last changed the row, or null for a platform process. Set by the database.Hace referencia a app.people.id
deleted_attimestamp with time zoneSíSoft delete time. A row with deleted_at set is ignored by every access helper.