Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2018-01-09 17:52:26 +01:00
parent 8ac705d8c2
commit 92d2045735
97 changed files with 18243 additions and 1544 deletions

View File

@@ -5,8 +5,8 @@ defmodule Eventos.Repo.Migrations.CreateUsers do
create table(:users) do
add :email, :string, null: false
add :role, :integer, default: 0, null: false
add :password_hash, :string
add :account_id, references(:accounts, on_delete: :delete_all, null: false)
add :password_hash, :string, null: false
add :account_id, references(:accounts, on_delete: :delete_all), null: false
timestamps()
end