Msdata.SystEnumItems (mscmp_syst_enums v0.1.0)

The data structure defining individual enumerated values.

Defined in MscmpSystEnums.

Summary

Functions

Produces a changeset used to create or update a Enum Items record.

Types

t()

@type t() :: %Msdata.SystEnumItems{
  __meta__: Ecto.Schema.Metadata.t(),
  diag_role_created: String.t() | nil,
  diag_role_modified: String.t() | nil,
  diag_row_version: integer() | nil,
  diag_timestamp_created: DateTime.t() | nil,
  diag_timestamp_modified: DateTime.t() | nil,
  diag_update_count: integer() | nil,
  diag_wallclock_modified: DateTime.t() | nil,
  display_name: String.t() | nil,
  enum: Msdata.SystEnums.t() | Ecto.Association.NotLoaded.t() | nil,
  enum_default: boolean() | nil,
  enum_id: Ecto.UUID.t() | nil,
  external_name: String.t() | nil,
  functional_type:
    Msdata.SystEnumFunctionalTypes.t() | Ecto.Association.NotLoaded.t() | nil,
  functional_type_default: boolean() | nil,
  functional_type_id: Ecto.UUID.t() | nil,
  id: Ecto.UUID.t() | nil,
  internal_name: MscmpSystEnums.Types.enum_item_name() | nil,
  sort_order: integer() | nil,
  syst_defined: boolean() | nil,
  syst_description: String.t() | nil,
  syst_options: map() | nil,
  user_description: String.t() | nil,
  user_maintainable: boolean() | nil,
  user_options: map() | nil
}

Functions

changeset(syst_enum_items, change_params \\ %{}, opts \\ [])

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

Produces a changeset used to create or update a Enum Items record.

The change_params argument defines the attributes to be used in maintaining a Enum Items record. Of the allowed fields, the following are required for creation:

  • internal_name - A unique key which is intended for programmatic usage by the application and other applications which make use of the data.

  • display_name - A unique key for the purposes of presentation to users in user interfaces, reporting, etc.

  • external_name - A non-unique name for the purposes of presentation to users in user interfaces, reporting, etc.

  • user_description - A description of the setting including its use cases and any limits or restrictions.

Options

  • :min_internal_name_length (pos_integer/0) - Sets the minimum grapheme length of internal_name values. The default value is 6.

  • :max_internal_name_length (pos_integer/0) - Sets the maximum grapheme length of internal_name values. The default value is 64.

  • :min_display_name_length (pos_integer/0) - Sets the minimum grapheme length of display_name values. The default value is 6.

  • :max_display_name_length (pos_integer/0) - Sets the maximum grapheme length of display_name values. The default value is 64.

  • :min_external_name_length (pos_integer/0) - Sets the minimum grapheme length of external_name values. The default value is 2.

  • :max_external_name_length (pos_integer/0) - Sets the maximum grapheme length of external_name values. The default value is 64.

  • :min_user_description_length (pos_integer/0) - Sets the minimum grapheme length of user_description values. The default value is 6.

  • :max_user_description_length (pos_integer/0) - Sets the maximum grapheme length of user_description values. The default value is 1000.