Skip to main content

pres.monthly_justification_aggregates

Schema: pres
English table: pres.monthly_justification_aggregates
Italian original table: pres.giust_mese
Description: Monthly aggregated values of leave and absence reasons, prepared for payroll processing.

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOIdentifier of the related record.
mja_idgme_idintegerNOUnique ID for the monthly aggregate.
tenant_idtenant_idintegerNOIdentifier of the related tenant.
mja_employment_idgme_rap_idintegerNO0Reference to the employee employment contract.
mja_reference_monthgme_datadateNOReference date for the month (e.g., 2026-02-01).
mja_reason_codegme_cod_giustcharacter(4)NO''::bpcharThe justification code being aggregated.
mja_total_attendance_hoursgme_ore_giustnumeric(8,2)YES0Total hours calculated by the attendance tracking system.
mja_is_cancelledgme_annullatobooleanNOfalseBoolean flag for mja is cancelled.
mja_is_manually_forcedgme_forzatobooleanNOfalseFlag: indicates if the monthly total was manually overwritten.
mja_payroll_final_hoursgme_ore_paghenumeric(8,2)NO0Final adjusted hours to be sent to the payroll system.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_giust_mese_gme_rap_id_to_rapportitenant_id, mja_employment_idhr.employment_relationshipstenant_id, er_idRESTRICTCASCADE
fk_mja_reason_definitiontenant_id, mja_reason_codepres.attendance_reasonstenant_id, ar_codeCASCADERESTRICT
fk_mja_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_monthly_justification_aggregatesid
  • Unique: c_uk_mja_id_tenanttenant_id, mja_id

Indexes

NameUniqueMethodColumns / expression
idx_mja_employment_month_lookupNObtreetenant_id, mja_employment_id, mja_reference_month
idx_mja_month_reason_lookupNObtreetenant_id, mja_reference_month, mja_reason_code