AuthShield v0.0.1 AuthShield.Resources.Schemas.UsersRoles View Source

Defines the association between users and roles.

This is only used to create the many to many relations on the tables.

Link to this section Summary

Types

t()

Abstract role module type.

Functions

Generates an Ecto.Changeset struct with the changes.

Link to this section Types

Link to this type

t()

View Source
t() :: %AuthShield.Resources.Schemas.UsersRoles{
  __meta__: term(),
  inserted_at: NaiveDateTime.t(),
  role: AuthShield.Resources.Schemas.Role.t(),
  role_id: term(),
  updated_at: NaiveDateTime.t(),
  user: AuthShield.Resources.Schemas.User.t(),
  user_id: term()
}

Abstract role module type.

Link to this section Functions

Link to this function

changeset(model, params)

View Source
changeset(model :: t(), params :: map()) :: Ecto.Changeset.t()

Generates an Ecto.Changeset struct with the changes.