Skip to main content

hr.document_models

Schema: hr
English table: hr.document_models
Italian original table: hr.i_docmodel
Description: Document models used to configure document workflows, visibility rules, and validation options.

Overview

  • Columns: 22
  • Primary key: id
  • Outgoing foreign keys: 1
  • Incoming foreign keys: 4
  • Indexes: 5

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOPrimary key of the record.
dmdl_iddm_idintegerNOBusiness identifier of the document model, unique within the tenant.
dmdl_namedm_namecharacter varying(100)NODocument model name.
dmdl_descriptiondm_descriptioncharacter varying(200)NODocument model description.
dmdl_pagedm_pagecharacter varying(100)NOApplication page or UI context associated with the document model.
dmdl_requires_verificationdm_verificabooleanNOIndicates whether the document model requires a verification step.
dmdl_is_directdm_direttobooleanNOIndicates whether the document model is handled directly without intermediate steps.
dmdl_is_defaultdm_defaultbooleanNOIndicates whether the document model is the default one for its context.
dmdl_is_enableddm_enabledbooleanNOIndicates whether the document model is enabled and available for use.
dmdl_document_descriptiondm_doc_descriptioncharacter varying(200)NODefault description to be used for generated documents.
dmdl_months_to_showdm_month_showintegerNONumber of months shown in the selection window.
dmdl_months_to_show_nextdm_month_show_nextintegerNONumber of next months shown in the selection window.
dmdl_days_to_showdm_day_showintegerNONumber of days shown in the selection window.
dmdl_days_to_show_nextdm_day_show_nextintegerNONumber of next days shown in the selection window.
dmdl_justification_functiondm_fn_giustifcharacter varying(100)NOFunction or identifier used to derive the related justification.
dmdl_select_anomalydm_select_anomaliabooleanNOIndicates whether the model includes anomaly selection.
dmdl_check_duplicate_requestdm_check_duplicate_requestnumeric(1,0)NOFlag indicating whether to check for duplicate requests (numeric 0/1).
dmdl_document_reference_type_iddm_tdocrif_idintegerNOIdentifier of the document reference type used by the model.
dmdl_next_day_disableddm_day_next_disabledintegerNONumber of next days that are disabled from selection.
tenant_idtenant_idintegerYESTenant identifier for row-level partitioning.
colcustomcolcustomjsonbYES'{}'::jsonbCustom fields in JSON format.
_deleted_deletedbooleanYESfalseSoft delete flag.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_document_models_tenant_idtenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

From tableForeign keySource columnsTarget columns
hr.document_model_justificationsfk_document_model_justifications_modeldmj_document_model_id, tenant_iddmdl_id, tenant_id
hr.document_model_permissionsfk_document_model_permissions_modeldmp_document_model_id, tenant_iddmdl_id, tenant_id
hr.document_model_stepsfk_document_model_steps_modeldms_document_model_id, tenant_iddmdl_id, tenant_id
hr.documentsfk_documents_modeldoc_document_model_id, tenant_iddmdl_id, tenant_id

Constraints

  • Primary key: pk_document_modelsid
  • Unique: uk_document_models_dmdl_iddmdl_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_dmdl_tenantNObtreetenant_id
idx_dmdl_tenant_check_duplicateNObtreetenant_id, dmdl_check_duplicate_request) WHERE (_deleted = false
idx_dmdl_tenant_dmdlNObtreetenant_id, dmdl_id) WHERE (_deleted = false
idx_dmdl_tenant_is_defaultNObtreetenant_id, dmdl_is_default) WHERE (_deleted = false
idx_dmdl_tenant_reference_typeNObtreetenant_id, dmdl_document_reference_type_id) WHERE (_deleted = false