Karta.Accounts.Membership (Karta v1.0.0)

A user's role inside an organisation.

Summary

Functions

The organisation and user are set by the context, never cast from input.

Types

role()

@type role() :: :owner | :admin | :member | :read_only

t()

@type t() :: %Karta.Accounts.Membership{
  __meta__: term(),
  id: term(),
  inserted_at: term(),
  organisation: term(),
  organisation_id: term(),
  role: term(),
  updated_at: term(),
  user: term(),
  user_id: term()
}

Functions

changeset(membership, attrs)

The organisation and user are set by the context, never cast from input.

roles()