Skip to main content

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 columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOInternal surrogate primary key.
epbi_idcorpced_idintegerNOBusiness identifier for the payslip item, unique per tenant.
epbi_employment_relationship_idcorpced_rap_idintegerNOReference to the employment relationship.
epbi_monthcorpced_monthintegerNOReference month of the payslip.
epbi_yearcorpced_yearintegerNOReference year of the payslip.
epbi_payslip_item_definition_idcorpced_xcorpced_idintegerNOReference to the definition/type of the payslip item.
epbi_amountcorpced_valuenumeric(10,2)NOThe monetary value or quantity associated with the payslip item.
tenant_idtenant_idintegerYESTenant identifier for row ownership and RLS filtering.
colcustomcolcustomjsonbYES'{}'::jsonbCustom fields in JSON format.
_deleted_deletedbooleanYESfalseLogical deletion flag.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_epbi_employment_relationshipepbi_employment_relationship_id, tenant_idhr.employment_relationshipser_id, tenant_idRESTRICTCASCADE
fk_epbi_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_employment_payslip_body_itemsid
  • Unique: uk_epbi_id_tenantepbi_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_epbi_definition_tenantNObtreetenant_id, epbi_payslip_item_definition_id) WHERE (_deleted = false
idx_epbi_emp_rel_period_tenantNObtreetenant_id, epbi_employment_relationship_id, epbi_month, epbi_year) WHERE (_deleted = false
idx_epbi_emp_rel_tenantNObtreetenant_id, epbi_employment_relationship_id) WHERE (_deleted = false
idx_epbi_id_tenantNObtreetenant_id, epbi_id) WHERE (_deleted = false
idx_epbi_period_tenantNObtreetenant_id, epbi_month, epbi_year) WHERE (_deleted = false
idx_epbi_tenantNObtreetenant_id