Schema for per-user notifications.
One row per (activity, recipient_user). Generated by
PhoenixKit.Notifications.maybe_create_from_activity/1 whenever an activity
targets a user other than the actor.
Fields
activity_uuid— FK toPhoenixKit.Activity.Entryrecipient_uuid— FK toPhoenixKit.Users.Auth.Userseen_at—NULLuntil the user opens the notification or bulk-marksdismissed_at—NULLuntil the user dismisses it from the inboxinserted_at— creation timestamp (noupdated_at)
Summary
Functions
Changeset for creating a notification.
Types
@type t() :: %PhoenixKit.Notifications.Notification{ __meta__: term(), activity: PhoenixKit.Activity.Entry.t() | Ecto.Association.NotLoaded.t() | nil, activity_uuid: UUIDv7.t() | nil, dismissed_at: DateTime.t() | nil, inserted_at: DateTime.t() | nil, recipient: PhoenixKit.Users.Auth.User.t() | Ecto.Association.NotLoaded.t() | nil, recipient_uuid: UUIDv7.t() | nil, seen_at: DateTime.t() | nil, uuid: UUIDv7.t() | nil }