Implement client joined rooms endpoint

Track which rooms a local account has joined
Add some documentation to modules
This commit is contained in:
Pim Kunis 2021-08-23 12:59:12 +02:00
parent 9d40f8bc8b
commit 6f8c224d50
8 changed files with 95 additions and 11 deletions

View file

@ -0,0 +1,16 @@
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