Schema for activity feed entries.
Records business-level actions across the platform: posts created, comments liked, users followed, passwords changed, etc.
Fields
action— Dotted action string: "post.created", "comment.liked", "user.registered"actor_uuid— Who performed the action (FK to users)resource_type— What kind of thing was acted on: "post", "comment", "user"resource_uuid— UUID of the resourcetarget_uuid— Optional: who was affected (e.g., follow target, message recipient)metadata— Flexible JSONB context (title, old_value, new_value, etc.)
Summary
Functions
Changeset for creating an activity entry.
Types
@type t() :: %PhoenixKit.Activity.Entry{ __meta__: term(), action: String.t(), actor: PhoenixKit.Users.Auth.User.t() | Ecto.Association.NotLoaded.t() | nil, actor_uuid: UUIDv7.t() | nil, inserted_at: DateTime.t() | nil, metadata: map(), mode: term(), module: term(), resource_type: String.t() | nil, resource_uuid: Ecto.UUID.t() | nil, target: PhoenixKit.Users.Auth.User.t() | Ecto.Association.NotLoaded.t() | nil, target_uuid: UUIDv7.t() | nil, uuid: UUIDv7.t() | nil }