# `EctoFoundationDB.Tenant.DirectoryTenant`
[🔗](https://github.com/foundationdb-beam/ecto_foundationdb/blob/main/lib/ecto_foundationdb/tenant/directory_tenant.ex#L1)

The default backend for EctoFDB multitenancy.

It uses the Directory Layer defined by `:erlfdb_directory` to
partition tenant keyspaces from each other. There is no guarantee
provided by FDB at the transaction-level, so care must be taken to
always pack keys appropriately. Standard use of Ecto.Repo functions
is guaranteed to respect tenant boundaries.

# `t`
[🔗](https://github.com/foundationdb-beam/ecto_foundationdb/blob/main/lib/ecto_foundationdb/tenant/directory_tenant.ex#L19)

```elixir
@type t() :: %EctoFoundationDB.Tenant.DirectoryTenant{
  node: term(),
  prefix: term(),
  ref: term()
}
```

---

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