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

Persisted `close` directive (table `beancount_closes`).

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

## Fields

  * `date` - the day the account closes.
  * `account` - account being closed, e.g. `"Assets:Bank"`.
  * `metadata` - arbitrary key/value map.
  * `file_order` - zero-based position of the directive in the source.

## Example

    %Beancount.Schemas.Close{
      date: ~D[2026-12-31],
      account: "Assets:Bank",
      metadata: %{},
      file_order: 5
    }

# `t`

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

---

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