# `PhoenixKit.Activity.Entry`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.102/lib/phoenix_kit/activity/entry.ex#L1)

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 resource
- `target_uuid` — Optional: who was affected (e.g., follow target, message recipient)
- `metadata` — Flexible JSONB context (title, old_value, new_value, etc.)

# `t`

```elixir
@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
}
```

# `changeset`

Changeset for creating an activity entry.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
