Implement client joined rooms endpoint
Track which rooms a local account has joined Add some documentation to modules
This commit is contained in:
parent
9d40f8bc8b
commit
6f8c224d50
8 changed files with 95 additions and 11 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue