Skip to main content

hr.element_group_types

Schema: hr
English table: hr.element_group_types
Italian original table: hr.gruppi_tipi
Description: Lookup/configuration of element group types. Controls selection behavior and integration rules (e.g., org chart linkage).

Overview

  • Columns: 10
  • Primary key: id
  • Outgoing foreign keys: 1
  • Incoming foreign keys: 1
  • Indexes: 3

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOSurrogate primary key.
egt_idgrpt_idintegerNOLogical element group type identifier (unique per tenant).
egt_namegrpt_denominazionecharacter varying(30)NOElement group type name/label.
egt_links_org_chartgrpt_collega_organigrammanumeric(2,0)NONumeric flag/code indicating whether groups of this type are linked/usable in the org chart module.
egt_list_typegrpt_tipo_listaintegerNOList type/category code controlling how groups of this type are presented/used.
egt_tev_idgrpt_tev_idintegerNOReference/code used by the application to determine the value/element type behavior (meaning depends on domain configuration).
egt_is_multi_selectgrpt_multi_selectbooleanNOIf TRUE, multiple groups of this type can be selected/assigned.
tenant_idtenant_idintegerYESTenant identifier for data isolation.
colcustomcolcustomjsonbYES'{}'::jsonbCustom fields container (JSON).
_deleted_deletedbooleanYESfalseTechnical soft delete flag. FALSE = active, TRUE = hidden (not a functional deletion).

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_egt_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

From tableForeign keySource columnsTarget columns
hr.element_groupsfk_eg_element_group_typeeg_egt_id, tenant_idegt_id, tenant_id

Constraints

  • Primary key: pk_element_group_typesid
  • Unique: uk_egt_id_tenantegt_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_egt_tenantNObtreetenant_id
idx_egt_tenant_egt_idNObtreetenant_id, egt_id) WHERE (_deleted = false
idx_egt_tenant_tevNObtreetenant_id, egt_tev_id) WHERE (_deleted = false