Skip to main content

hr.document_model_justifications

Schema: hr
English table: hr.document_model_justifications
Italian original table: hr.in_docmodel_giustif
Description: Rules and validation settings for leave justifications linked to specific document models.

Overview

  • Columns: 16
  • Primary key: id
  • Outgoing foreign keys: 3
  • Incoming foreign keys: 0
  • Indexes: 5

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOInternal surrogate primary key.
dmj_iddmg_idintegerNOUnique identifier for the justification rule within a tenant.
dmj_document_model_iddmg_dm_idintegerNOReference to the parent document model.
dmj_descriptiondmg_descrizionecharacter varying(100)NODescription of the justification rule.
dmj_justification_codedmg_cod_giucharacter varying(4)NOReference code for the justification type.
dmj_counter_iddmg_cont_idintegerNOReference to the balance/counter linked to this justification.
dmj_type_codedmg_tiponumeric(1,0)NOInternal classification code for the justification type.
dmj_valid_days_maskdmg_giorni_valcharacter varying(8)NOBitmask or string representing valid days of the week.
dmj_counter_usage_type_iddmg_xtipucont_idintegerNOReference to the usage type configuration for the counter.
dmj_is_hidden_counter_disableddmg_hiddencont_disabledbooleanNOFlag to disable the hidden counter logic.
dmj_hidden_counter_default_valuedmg_hiddencont_valuebooleanNODefault value for the hidden counter.
dmj_has_leave_balance_checkdmg_checkferiebooleanNOFlag indicating if a balance check (e.g. for holidays/PTO) is required.
dmj_leave_balance_tolerance_daysdmg_checkferie_tolleranceintegerNOTolerance in days for negative balances.
tenant_idtenant_idintegerYESTenant identifier for data isolation.
colcustomcolcustomjsonbYES'{}'::jsonbJSON field for custom data.
_deleted_deletedbooleanYESfalseTechnical soft delete flag.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_document_model_justifications_modeldmj_document_model_id, tenant_idhr.document_modelsdmdl_id, tenant_idRESTRICTRESTRICT
fk_document_model_justifications_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE
fk_document_model_justifications_usage_typedmj_counter_usage_type_id, tenant_idhr.x_counter_usage_typesxcut_id, tenant_idRESTRICTRESTRICT

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_document_model_justificationsid
  • Unique: uk_document_model_justifications_iddmj_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_dmj_counter_tenantNObtreetenant_id, dmj_counter_id) WHERE (_deleted = false
idx_dmj_document_model_tenantNObtreetenant_id, dmj_document_model_id) WHERE (_deleted = false
idx_dmj_id_tenantNObtreetenant_id, dmj_id) WHERE (_deleted = false
idx_dmj_tenantNObtreetenant_id
idx_dmj_usage_type_tenantNObtreetenant_id, dmj_counter_usage_type_id) WHERE (_deleted = false