View Source Glific.Contacts.ContactHistory (Glific v5.1.6)

The minimal wrapper for the base Contact structure

Link to this section Summary


Standard changeset pattern we use for all data types

Link to this section Types

@type t() :: %Glific.Contacts.ContactHistory{
  __meta__: Ecto.Schema.Metadata.t(),
  contact: Glific.Contacts.Contact.t() | Ecto.Association.NotLoaded.t() | nil,
  contact_id: non_neg_integer() | nil,
  event_datetime: :utc_datetime | nil,
  event_label: String.t() | nil,
  event_meta: map() | nil,
  event_type: String.t() | nil,
  id: non_neg_integer() | nil,
  inserted_at: :utc_datetime_usec | 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,
  updated_at: :utc_datetime_usec | nil

Link to this section Functions

Link to this function

changeset(contact_history, attrs)

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

Standard changeset pattern we use for all data types