Split Identifier struct into seperate types
This commit is contained in:
parent
24f0657710
commit
4b60a145ca
14 changed files with 283 additions and 196 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue