View Source Glific.Flows.FlowResult (Glific v5.1.6)

Table which stores the flow results for each run of a contact through a flow

Link to this section Summary


Standard changeset pattern we use for all data types

Link to this section Types

@type t() :: %Glific.Flows.FlowResult{
  __meta__: Ecto.Schema.Metadata.t(),
  contact: Glific.Contacts.Contact.t() | Ecto.Association.NotLoaded.t() | nil,
  contact_id: non_neg_integer() | nil,
  flow: Glific.Flows.Flow.t() | Ecto.Association.NotLoaded.t() | nil,
  flow_context_id: non_neg_integer() | nil,
  flow_id: non_neg_integer() | nil,
  flow_uuid: Ecto.UUID.t() | nil,
  flow_version: integer() | nil,
  id: non_neg_integer() | nil,
  inserted_at: :utc_datetime | nil,
    Glific.Partners.Organization.t() | Ecto.Association.NotLoaded.t() | nil,
  organization_id: non_neg_integer() | nil,
  profile: Glific.Profiles.Profile.t() | Ecto.Association.NotLoaded.t() | nil,
  profile_id: non_neg_integer() | nil,
  results: map() | nil,
  updated_at: :utc_datetime | nil

Link to this section Functions

Link to this function

changeset(flow_revision, attrs)

View Source
@spec changeset(t(), map()) :: Ecto.Changeset.t()

Standard changeset pattern we use for all data types