mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-10 17:12:48 +00:00
24 lines
561 B
Elixir
24 lines
561 B
Elixir
defmodule MyApp.Repo.Migrations.CreateUser do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create table(:user) do
|
|
add :battle_net_id, :integer
|
|
add :battletag, :string
|
|
add :permissions, :string
|
|
add :character_guild, :string
|
|
add :character_name, :string
|
|
add :character_class, :string
|
|
add :character_realm, :string
|
|
add :character_avatar, :string
|
|
|
|
# for admin purposes
|
|
add :username, :string
|
|
add :password, :string
|
|
timestamps()
|
|
end
|
|
|
|
create unique_index(:user, [:battle_net_id])
|
|
end
|
|
end
|