architex/priv/repo/migrations/20210823083642_create_joined_rooms_table.exs
Pim Kunis 6f8c224d50 Implement client joined rooms endpoint
Track which rooms a local account has joined
Add some documentation to modules
2021-08-23 12:59:12 +02:00

16 lines
420 B
Elixir

defmodule MatrixServer.Repo.Migrations.CreateJoinedRoomsTable do
use Ecto.Migration
def change do
create table(:joined_rooms, primary_key: false) do
add :localpart,
references(:accounts, column: :localpart, type: :string),
primary_key: true,
null: false
add :room_id, references(:rooms, type: :string),
primary_key: true,
null: false
end
end
end