lol-analytics/apps/lol_analytics/priv/repo/migrations/20240502203545_player.exs

17 lines
388 B
Elixir

defmodule LoLAnalytics.Repo.Migrations.Player do
use Ecto.Migration
def change do
create table("player") do
add :puuid, :string, primary_key: true
add :region, :string
add :last_processed_at, :utc_datetime
add :status, :string, default: "queued"
timestamps()
end
unique_index("player", :puuid)
create index(:player, [:puuid])
end
end