Skip to main content

pres.employee_leave_balances

Schema: pres
English table: pres.employee_leave_balances
Italian original table: pres.progressivi
Description: Historical balances and snapshots for employee leave (vacation, PTO, and other time-off types).

Overview

  • Columns: 8
  • Primary key: id
  • Outgoing foreign keys: 2
  • Incoming foreign keys: 0
  • Indexes: 3

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOPrimary Key.
elb_balance_idprog_idintegerNOInternal unique identifier for the leave balance record.
tenant_idtenant_idintegerNOTenant identifier for data isolation.
elb_reference_dateprog_datadateNOReference date (snapshot date) for the leave balance.
elb_leave_type_codeprog_codicecharacter(3)NO''::bpcharCode identifying the type of leave (e.g., FER, PER).
elb_valueprog_valorenumeric(9,2)NO0The numeric value of the balance (accrued or remaining) at the reference date.
elb_employee_idprog_rap_idintegerNO0Foreign key to the employee or employment relationship record.
elb_is_manual_overrideprog_forzatobooleanNOfalseFlag indicating if the value was manually forced/overridden.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_elb_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE
fk_progressivi_prog_rap_id_to_rapportitenant_id, elb_employee_idhr.employment_relationshipstenant_id, er_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_employee_leave_balancesid
  • Unique: c_uk_elb_tenant_balancetenant_id, elb_balance_id

Indexes

NameUniqueMethodColumns / expression
idx_elb_tenant_employee_idNObtreetenant_id, elb_employee_id
idx_elb_tenant_leave_type_codeNObtreetenant_id, elb_leave_type_code
idx_elb_tenant_reference_dateNObtreetenant_id, elb_reference_date