Glific v0.3.1 Glific.Contacts.ContactsField View Source

The minimal wrapper for the base Contact structure

Link to this section Summary

Functions

Standard changeset pattern we use for all data types

Link to this section Types

Specs

t() :: %Glific.Contacts.ContactsField{
  __meta__: Ecto.Schema.Metadata.t(),
  id: non_neg_integer() | nil,
  inserted_at: :utc_datetime | nil,
  name: String.t() | nil,
  organization:
    Glific.Partners.Organization.t() | Ecto.Association.NotLoaded.t() | nil,
  organization_id: non_neg_integer() | nil,
  scope: String.t() | nil,
  shortcode: String.t() | nil,
  updated_at: :utc_datetime | nil,
  value_type: String.t() | nil
}

Link to this section Functions

Link to this function

changeset(contact_field, attrs)

View Source

Specs

changeset(any(), map()) :: Ecto.Changeset.t()

Standard changeset pattern we use for all data types