NotificationRecipient

final class NotificationRecipient : Model, @unchecked Sendable

A pivot recording that a NotificationLogEntry was sent to a particular User.

Kept separate from NotificationLogEntry itself so a broadcast notification sent to many users (e.g. an .announcement) stores its content once instead of once per recipient.

Properties

  • id

    The pivot’s ID.

    Declaration

    Swift

    @NotificationRecipient
    .ID var id: UUID? { get set }

Relations

Initialization