Msdata.SystPermFunctionalTypes (mscmp_syst_perms v0.1.0)

Defines the different kinds of permissions and allows those permissions to be associated with various degrees of authority.

Defined in MscmpSystPerms.

Summary

Functions

Creates a validated Ecto.Changeset struct for updating an existing database record.

Types

t()

@type t() :: %Msdata.SystPermFunctionalTypes{
  __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,
  id: Ecto.UUID.t() | nil,
  internal_name: MscmpSystPerms.Types.perm_functional_type_name() | nil,
  perm_roles: term(),
  perms: term(),
  syst_description: String.t() | nil,
  user_description: String.t() | nil
}

Functions

update_changeset(perm_functional_type, update_params, opts \\ [])

Creates a validated Ecto.Changeset struct for updating an existing database record.

Parameters

  • perm_functional_type - The Msdata.SystPermFunctionalTypes record to update.

  • update_params - the values with which to update the record.

  • opts - a keyword list of options to control the validation.

Options

  • :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_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.