chessh/priv/repo/migrations/20221219082326_create_player.exs
Simponic fe5f5b77fc
Discord notifs (#14)
* Add role id to config

* Add discord notifications for games

* Fix discord discriminant tests
2023-02-01 14:57:14 -07:00

16 lines
390 B
Elixir

defmodule Chessh.Repo.Migrations.CreatePlayer do
use Ecto.Migration
def change do
create table(:players) do
add(:discord_id, :string, null: false)
add(:username, :string, null: false)
add(:hashed_password, :string, null: true)
timestamps()
end
create(unique_index(:players, [:username]))
create(unique_index(:players, [:discord_id]))
end
end