Add membership table

This commit is contained in:
Pim Kunis 2021-09-08 12:03:41 +02:00
parent a682f1c7ad
commit 46b4199618
4 changed files with 63 additions and 6 deletions

View file

@ -91,5 +91,11 @@ defmodule Architex.Repo.Migrations.CreateInitialTables do
add :event_id, :string, null: false
end
create table(:membership, primary_key: false) do
add :account_id, references(:accounts), primary_key: true
add :room_id, references(:rooms, type: :string), primary_key: true
add :membership, :string, null: false
end
end
end