Generates the outbox_messages table migration required by
PhoenixMicro.Outbox.
Usage
mix phoenix_micro.gen.migrationOptions
--repo MODULE Ecto repo module (default: inferred from Mix project)
--table NAME Table name (default: outbox_messages)
--no-index Skip creating indexesWhat it generates
A timestamped migration file in priv/repo/migrations/ that creates:
outbox_messagestable with UUID primary key- Columns: topic, payload (jsonb), headers (jsonb), attempt, relayed_at, failed_at, last_error, inserted_at, updated_at
- Index on
(relayed_at, inserted_at)for efficient relay polling - Index on
failed_atfor DLQ monitoring queries - Uses
gen_random_uuid()for Postgres UUID generation