Beancount.Schemas.Event (beancount_ex v0.6.0)

Copy Markdown View Source

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
}

Summary

Types

t()

@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()
}