initial commit

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2017-12-08 09:58:14 +01:00
commit 90ceb4f6fe
181 changed files with 8219 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
defmodule Eventos.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add :username, :string
add :email, :string
add :role, :integer, default: 0
add :account_id, references(:accounts, on_delete: :delete_all, null: false)
timestamps()
end
create unique_index(:users, [:username])
end
end