Split Identifier struct into seperate types

This commit is contained in:
Pim Kunis 2021-08-19 16:31:03 +02:00
parent 24f0657710
commit 4b60a145ca
14 changed files with 283 additions and 196 deletions

View file

@ -8,8 +8,8 @@ defmodule MatrixServer.Account do
alias Ecto.Multi
@type t :: %__MODULE__{
password_hash: String.t()
}
password_hash: String.t()
}
@max_mxid_length 255

View file

@ -8,10 +8,10 @@ defmodule MatrixServer.Room do
alias MatrixServerWeb.Client.Request.CreateRoom
@type t :: %__MODULE__{
visibility: :public | :private,
state: list(list(String.t())),
forward_extremities: list(String.t())
}
visibility: :public | :private,
state: list(list(String.t())),
forward_extremities: list(String.t())
}
@primary_key {:id, :string, []}
schema "rooms" do