defmodule DaProductApp.Repo.Migrations.CreateMerchants do use Ecto.Migration def change do create table(:merchants, primary_key: false) do add :id, :binary_id, primary_key: true add :name, :string, null: false add :email, :string add :phone, :string add :status, :string add :merchant_id, :string timestamps(type: :utc_datetime) end create unique_index(:merchants, [:merchant_id]) create index(:merchants, [:email]) end end