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 column | Italian original column | Type | Null | Default / Generated | Description |
|---|
id | id | integer | NO | | Surrogate primary key. |
ecb_id | retrbud_id | integer | NO | | Identifier of the related ecb record. |
ecb_employment_relationship_id | retrbud_rap_id | integer | NO | | Identifier of the related ecb employment relationship record. |
ecb_year | retrbud_year | integer | NO | | The fiscal or calendar year for the budget allocation. |
ecb_expected_amount | retrbud_expected | numeric(10,2) | NO | | The forecasted or budgeted cost for the specific year. |
ecb_actual_paid_amount | retrbud_paid | numeric(10,2) | NO | | The actual total amount paid to the employee during the year. |
tenant_id | tenant_id | integer | YES | | Tenant identifier for data isolation. |
colcustom | colcustom | jsonb | YES | '{}'::jsonb | JSON payload containing additional attributes. |
_deleted | _deleted | boolean | YES | false | Flag indicating whether the record is soft-deleted. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|
fk_ecb_employment_relationship | ecb_employment_relationship_id, tenant_id | hr.employment_relationships | er_id, tenant_id | RESTRICT | CASCADE |
fk_ecb_tenant | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
No incoming foreign keys found.
Constraints
- Primary key:
pk_ecb → id
- Unique:
uk_ecb_id_tenant → ecb_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_ecb_emp_rel_tenant | NO | btree | tenant_id, ecb_employment_relationship_id) WHERE (_deleted = false |
idx_ecb_emp_rel_year_tenant | NO | btree | tenant_id, ecb_employment_relationship_id, ecb_year) WHERE (_deleted = false |
idx_ecb_id_tenant | NO | btree | tenant_id, ecb_id) WHERE (_deleted = false |
idx_ecb_tenant | NO | btree | tenant_id |
idx_ecb_year_tenant | NO | btree | tenant_id, ecb_year) WHERE (_deleted = false |
Navigation