Bonfire.Data.SharedUser (Bonfire v0.9.12-social-beta.71)

View Source

A mixin for shared user personas (which multiple accounts can use)

Summary

Types

t()

@type t() :: %Bonfire.Data.SharedUser{
  __meta__: Ecto.Schema.Metadata.t(),
  caretaker_accounts: term(),
  id: Needle.UID.t() | nil,
  label: term(),
  pointer: Ecto.Schema.belongs_to(Needle.Pointer.t()) | nil,
  user: term()
}

Functions

changeset(user \\ %SharedUser{}, params)

delete(struct, key)

get(struct, key, default \\ nil)

put(struct, key, val)