View Source Bonfire.Data.Identity.Accounted (Bonfire v0.9.11-social-beta.6)

A mixin for an account ID, indicating ownership

Primarily used for Users.

Summary

Types

t()

@type t() :: %Bonfire.Data.Identity.Accounted{
  __meta__: Ecto.Schema.Metadata.t(),
  account: Ecto.Schema.belongs_to(Bonfire.Data.Identity.Account.t()) | nil,
  account_id: Needle.UID.t() | nil,
  id: Needle.UID.t() | nil,
  pointer: Ecto.Schema.belongs_to(Needle.Pointer.t()) | nil,
  user: Ecto.Schema.belongs_to(Bonfire.Data.Identity.User.t()) | nil
}

Functions

changeset(acc \\ %Accounted{}, params)

delete(struct, key)

get(struct, key, default \\ nil)

put(struct, key, val)