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.
-
Declaration
Swift
static let schema: String
-
The pivot’s ID.
Declaration
Swift
@NotificationRecipient .ID var id: UUID? { get set }
-
The
NotificationLogEntrythat was sent.Declaration
Swift
@NotificationRecipient .Parent var notification: NotificationLogEntry { get set }
-
Used by Fluent
Declaration
Swift
init() -
Initializes a new NotificationRecipient.
Declaration
Swift
init(notificationID: UUID, userID: UUID)
View on GitHub