Glific v0.3.1 Glific.Groups.Group View Source

The minimal wrapper for the base Group structure

Link to this section Summary

Functions

Standard changeset pattern we use for all data types

Link to this section Types

Specs

t() :: %Glific.Groups.Group{
  __meta__: Ecto.Schema.Metadata.t(),
  contacts: term(),
  description: String.t() | nil,
  id: non_neg_integer() | nil,
  inserted_at: :utc_datetime | nil,
  is_restricted: boolean(),
  label: String.t() | nil,
  organization:
    Glific.Partners.Organization.t() | Ecto.Association.NotLoaded.t() | nil,
  organization_id: non_neg_integer() | nil,
  updated_at: :utc_datetime | nil,
  users: term()
}

Link to this section Functions

Link to this function

changeset(contact, attrs)

View Source

Specs

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

Standard changeset pattern we use for all data types