EpochtalkServer.Models.Permission (epochtalk_server v0.1.0)
Permission
model, for performing actions relating to Role
permissions, used for seeding
Link to this section Summary
Functions
Returns every Permission
record in the database
Returns a specific Permission
provided it's path
Creates a generic changeset for Permission
model
Link to this section Types
Link to this section Functions
Link to this function
all()
@spec all() :: [t()] | []
Returns every Permission
record in the database
Link to this function
by_path(path)
Returns a specific Permission
provided it's path
Link to this function
changeset(permission, attrs \\ %{})
@spec changeset(permission :: t(), attrs :: map() | nil) :: Ecto.Changeset.t()
Creates a generic changeset for Permission
model