Create players

This commit is contained in:
2020-12-28 22:33:14 -08:00
parent 6266b089a5
commit bddf7ff040
13 changed files with 114 additions and 7 deletions
@@ -0,0 +1,10 @@
defmodule Bwc.Repo.Migrations.CreatePlayers do
use Ecto.Migration
def change do
create table "players" do
add :username, :string
add :picture, :string
end
end
end
@@ -0,0 +1,7 @@
defmodule Bwc.Repo.Migrations.AddUniqueUsernames do
use Ecto.Migration
def change do
create unique_index(:players, [:username])
end
end