Skip to main content

pres.weekly_justification_aggregates

Schema: pres
English table: pres.weekly_justification_aggregates
Italian original table: pres.giust_sett
Description: Weekly aggregates of absence and leave reasons, used for compliance checks and reporting.

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOIdentifier of the related record.
wja_idgis_idintegerNOUnique ID for the weekly aggregate.
tenant_idtenant_idintegerNOIdentifier of the related tenant.
wja_employment_idgis_rap_idintegerNO0Reference to the employee employment contract.
wja_reference_dategis_datadateNOReference date for the week (usually the Monday).
wja_reason_codegis_cod_giustcharacter(4)NO''::bpcharThe justification code being aggregated.
wja_total_hoursgis_ore_giustnumeric(10,2)NO0Sum of total hours for the specific reason within the week.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_giust_sett_gis_rap_id_to_rapportitenant_id, wja_employment_idhr.employment_relationshipstenant_id, er_idRESTRICTCASCADE
fk_wja_reason_definitiontenant_id, wja_reason_codepres.attendance_reasonstenant_id, ar_codeCASCADERESTRICT
fk_wja_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_weekly_justification_aggregatesid
  • Unique: c_uk_wja_id_tenanttenant_id, wja_id

Indexes

NameUniqueMethodColumns / expression
idx_wja_date_reason_lookupNObtreetenant_id, wja_reference_date, wja_reason_code
idx_wja_employment_date_lookupNObtreetenant_id, wja_employment_id, wja_reference_date