Skip to main content

hr.cost_group_details

Schema: hr
English table: hr.cost_group_details
Italian original table: hr.gruppi_costi_det
Description: Cost group detail records linking cost groups to elements and their hierarchical relationships.

Overview

  • Columns: 8
  • Primary key: id
  • Outgoing foreign keys: 1
  • Incoming foreign keys: 0
  • Indexes: 5

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOPrimary key of the record.
cgdet_idgrpcosd_idintegerNOBusiness identifier of the cost group detail, unique within the tenant.
cgdet_cost_group_idgrpcos_idintegerNOReference to the cost group this detail belongs to.
cgdet_element_idgrpcosd_elec_idintegerNOIdentifier of the element associated with the cost group detail.
cgdet_parent_element_idgrpcosd_elec_father_idintegerNOIdentifier of the parent element in the hierarchy.
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_cost_group_details_tenant_idtenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_cost_group_detailsid
  • Unique: uk_cost_group_details_cgdet_idcgdet_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_cgdet_tenantNObtreetenant_id
idx_cgdet_tenant_cgdetNObtreetenant_id, cgdet_id) WHERE (_deleted = false
idx_cgdet_tenant_cost_groupNObtreetenant_id, cgdet_cost_group_id) WHERE (_deleted = false
idx_cgdet_tenant_elementNObtreetenant_id, cgdet_element_id) WHERE (_deleted = false
idx_cgdet_tenant_parent_elementNObtreetenant_id, cgdet_parent_element_id) WHERE (_deleted = false