View Source ValueFlows.Planning.Satisfaction (Bonfire v0.9.10-classic-beta.169)

Summary

Types

@type attrs() :: %{required(binary()) => term()} | %{required(atom()) => term()}
@type t() :: %ValueFlows.Planning.Satisfaction{
  __meta__: term(),
  creator: struct(),
  creator_id: String.t(),
  deleted_at: DateTime.t(),
  disabled_at: DateTime.t(),
  effort_quantity: Bonfire.Quantify.Measure.t(),
  effort_quantity_id: term(),
  id: String.t(),
  is_disabled: boolean(),
  is_public: boolean(),
  note: String.t(),
  published_at: DateTime.t(),
  resource_quantity: Bonfire.Quantify.Measure.t(),
  resource_quantity_id: String.t(),
  satisfied_by:
    ValueFlows.EconomicEvent.t() | ValueFlows.Planning.Commitment.t(),
  satisfied_by_id: String.t(),
  satisfies: ValueFlows.Planning.Intent.t(),
  satisfies_id: String.t(),
  updated_at: DateTime.t()
}

Functions

Callback implementation for Bonfire.Common.SchemaModule.context_module/0.

Link to this function

create_changeset(creator, attrs)

View Source
@spec create_changeset(
  struct(),
  attrs()
) :: Ecto.Changeset.t()
Link to this function

get(struct, key, default \\ nil)

View Source

Callback implementation for Bonfire.Common.SchemaModule.query_module/0.

Link to this function

update_changeset(satis, attrs)

View Source
@spec update_changeset(t(), attrs()) :: Ecto.Changeset.t()