# `Exandra.UDT`
[🔗](https://github.com/vinniefranco/exandra/blob/v1.0.0/lib/exandra/udt.ex#L1)

`Ecto.ParameterizedType` for **User-Defined Types** (UDTs).

## Options

* `:type` (`t:atom/0`) - Required. The UDT.

* `:encoded_fields` (list of `t:atom/0`) - JSON encoded fields.

## Examples

For example, if you have defined an `email` UDT in your database, you can
use it in your schema like this:

    schema "users" do
      field :email, Exandra.UDT, type: :email
    end

# `t`

```elixir
@type t() :: map()
```

---

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