# `Beancount.Schemas.Event`
[🔗](https://github.com/thanos/beancount_ex/blob/v0.6.0/lib/beancount/schemas/directives.ex#L284)

Persisted `event` directive (table `beancount_events`).

Storage-layer counterpart of `Beancount.Directives.Event`.

## Fields

  * `date` - the day the event value changes.
  * `type` - event name, e.g. `"location"` or `"employer"`.
  * `description` - the new value for the event.
  * `metadata` - arbitrary key/value map.
  * `file_order` - zero-based position of the directive in the source.

## Example

    %Beancount.Schemas.Event{
      date: ~D[2026-01-05],
      type: "location",
      description: "Athens, GR",
      metadata: %{},
      file_order: 12
    }

# `t`

```elixir
@type t() :: %Beancount.Schemas.Event{
  __meta__: term(),
  date: term(),
  description: term(),
  file_order: term(),
  id: term(),
  inserted_at: term(),
  metadata: term(),
  type: term(),
  updated_at: term()
}
```

---

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