# `PhoenixMicro.Outbox.Message`
[🔗](https://github.com/iamkanishka/phoenix_micro/blob/v1.0.0/lib/phoenix_micro/outbox.ex#L159)

Ecto schema for the `outbox_messages` table.

Only available when `ecto` and `ecto_sql` are in your application's deps.
Add them to use the transactional outbox feature:

    {:ecto_sql, "~> 3.11"}
    {:postgrex, ">= 0.0.0"}

You can replace this schema by setting:

    config :phoenix_micro, outbox: [schema: MyApp.OutboxMessage]

# `__schema__`

```elixir
@spec __schema__(:source) :: String.t()
```

Returns the Ecto schema source table name.
Used by the Relay when building queries.

# `ecto_available?`

```elixir
@spec ecto_available?() :: boolean()
```

Returns true when Ecto is available in the host application.

---

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