Skip to main content

hr.employment_compensation_budgets

Schema: hr
English table: hr.employment_compensation_budgets
Italian original table: hr.retribuzioni_budget
Description: Annual compensation budget planning per employment relationship, tracking expected vs actual paid amounts.

Overview

  • Columns: 9
  • Primary key: id
  • Outgoing foreign keys: 2
  • Incoming foreign keys: 0
  • Indexes: 5

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOSurrogate primary key.
ecb_idretrbud_idintegerNOIdentifier of the related ecb record.
ecb_employment_relationship_idretrbud_rap_idintegerNOIdentifier of the related ecb employment relationship record.
ecb_yearretrbud_yearintegerNOThe fiscal or calendar year for the budget allocation.
ecb_expected_amountretrbud_expectednumeric(10,2)NOThe forecasted or budgeted cost for the specific year.
ecb_actual_paid_amountretrbud_paidnumeric(10,2)NOThe actual total amount paid to the employee during the year.
tenant_idtenant_idintegerYESTenant identifier for data isolation.
colcustomcolcustomjsonbYES'{}'::jsonbJSON payload containing additional attributes.
_deleted_deletedbooleanYESfalseFlag indicating whether the record is soft-deleted.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_ecb_employment_relationshipecb_employment_relationship_id, tenant_idhr.employment_relationshipser_id, tenant_idRESTRICTCASCADE
fk_ecb_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_ecbid
  • Unique: uk_ecb_id_tenantecb_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_ecb_emp_rel_tenantNObtreetenant_id, ecb_employment_relationship_id) WHERE (_deleted = false
idx_ecb_emp_rel_year_tenantNObtreetenant_id, ecb_employment_relationship_id, ecb_year) WHERE (_deleted = false
idx_ecb_id_tenantNObtreetenant_id, ecb_id) WHERE (_deleted = false
idx_ecb_tenantNObtreetenant_id
idx_ecb_year_tenantNObtreetenant_id, ecb_year) WHERE (_deleted = false