hr.employment_payslip_body_items
Schema: hr
English table: hr.employment_payslip_body_items
Italian original table: hr.retribuzioni_voci_corpo_cedolino
Description: Detailed breakdown of items within the body of a payslip (e.g., specific allowances, overtime, or deductions).
Overview
- Columns: 10
- Primary key: id
- Outgoing foreign keys: 2
- Incoming foreign keys: 0
- Indexes: 6
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|
id | id | integer | NO | | Internal surrogate primary key. |
epbi_id | corpced_id | integer | NO | | Business identifier for the payslip item, unique per tenant. |
epbi_employment_relationship_id | corpced_rap_id | integer | NO | | Reference to the employment relationship. |
epbi_month | corpced_month | integer | NO | | Reference month of the payslip. |
epbi_year | corpced_year | integer | NO | | Reference year of the payslip. |
epbi_payslip_item_definition_id | corpced_xcorpced_id | integer | NO | | Reference to the definition/type of the payslip item. |
epbi_amount | corpced_value | numeric(10,2) | NO | | The monetary value or quantity associated with the payslip item. |
tenant_id | tenant_id | integer | YES | | Tenant identifier for row ownership and RLS filtering. |
colcustom | colcustom | jsonb | YES | '{}'::jsonb | Custom fields in JSON format. |
_deleted | _deleted | boolean | YES | false | Logical deletion flag. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|
fk_epbi_employment_relationship | epbi_employment_relationship_id, tenant_id | hr.employment_relationships | er_id, tenant_id | RESTRICT | CASCADE |
fk_epbi_tenant | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
No incoming foreign keys found.
Constraints
- Primary key:
pk_employment_payslip_body_items → id
- Unique:
uk_epbi_id_tenant → epbi_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_epbi_definition_tenant | NO | btree | tenant_id, epbi_payslip_item_definition_id) WHERE (_deleted = false |
idx_epbi_emp_rel_period_tenant | NO | btree | tenant_id, epbi_employment_relationship_id, epbi_month, epbi_year) WHERE (_deleted = false |
idx_epbi_emp_rel_tenant | NO | btree | tenant_id, epbi_employment_relationship_id) WHERE (_deleted = false |
idx_epbi_id_tenant | NO | btree | tenant_id, epbi_id) WHERE (_deleted = false |
idx_epbi_period_tenant | NO | btree | tenant_id, epbi_month, epbi_year) WHERE (_deleted = false |
idx_epbi_tenant | NO | btree | tenant_id |
Navigation