Skip to main content

pres.attendance_counter_balances

Schema: pres
English table: pres.attendance_counter_balances
Italian original table: pres.tot_numeri
Description: Historical balances, accruals, and usage records for employee attendance counters.

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOInternal surrogate primary key.
acb_balance_idtot_idintegerNOUnique business identifier for the balance record.
tenant_idtenant_idintegerNOTenant identifier for data isolation.
acb_counter_definition_idtot_cnt_idintegerNO0Reference to the counter type definition (attendance_counter_definitions).
acb_entry_typetot_typecharacter(1)NO''::bpcharCategory of the record: e.g., Initial Balance, Accrual, Usage, Final Balance.
acb_valuetot_valorenumeric(9,2)NO0The numeric value of the counter (hours or days).
acb_reference_datetot_datadateNOThe date the balance or movement refers to (e.g., end of month).
acb_is_manual_adjustmenttot_forzatobooleanNOfalseTrue if the value was manually overridden by an administrator.
acb_descriptiontot_descrizionecharacter(50)NO''::bpcharHuman-readable description of the balance entry.
acb_employment_contract_idtot_rap_idintegerNO0Reference to the specific employee contract.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_acb_counter_definitiontenant_id, acb_counter_definition_idpres.attendance_counter_definitionstenant_id, acd_counter_idCASCADECASCADE
fk_acb_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE
fk_tot_numeri_tot_rap_id_to_rapportitenant_id, acb_employment_contract_idhr.employment_relationshipstenant_id, er_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_attendance_counter_balancesid
  • Unique: c_uk_acb_tenant_balance_idtenant_id, acb_balance_id

Indexes

NameUniqueMethodColumns / expression
idx_acb_tenant_contract_idNObtreetenant_id, acb_employment_contract_id
idx_acb_tenant_counter_idNObtreetenant_id, acb_counter_definition_id
idx_acb_tenant_reference_dateNObtreetenant_id, acb_reference_date