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

@type t() :: %EpochtalkServer.Models.Permission{
  __meta__: term(),
  path: String.t() | nil
}

Link to this section Functions

@spec all() :: [t()] | []

Returns every Permission record in the database

@spec by_path(path :: String.t()) :: t() | nil

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