Skip to main content

pres.monthly_attendance_summaries

Schema: pres
English table: pres.monthly_attendance_summaries
Italian original table: pres.cart_mese
Description: Consolidated monthly attendance totals per employee, used for payroll processing and historical reporting.

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOIdentifier of the related record.
mas_idmes_idintegerNOUnique identifier for the monthly summary.
tenant_idtenant_idintegerNOIdentifier of the related tenant.
mas_employment_idmes_rap_idintegerNOIdentifier of the related mas employment.
mas_reference_datemes_datadateNOThe month/year the summary refers to (usually the first or last day of the month).
mas_hiring_datemes_data_assundateNODate associated with mas hiring date.
mas_termination_datemes_data_licendateNODate associated with mas termination date.
mas_regular_hoursmes_ore_ordinarienumeric(8,2)NO0Total ordinary working hours calculated for the month.
mas_excess_hoursmes_ore_esuberonumeric(8,2)NO0Value of mas excess hours.
mas_recovery_hoursmes_ore_recuperonumeric(8,2)NO0Value of mas recovery hours.
mas_overtime_hoursmes_ore_straordinarienumeric(8,2)NO0Total overtime hours calculated for the month.
mas_absence_hoursmes_ore_assenzanumeric(8,2)NO0Total hours of absence recorded in the month.
mas_workable_hoursmes_ore_lavorabilinumeric(8,2)NO0Value of mas workable hours.
mas_worked_hoursmes_ore_lavoratenumeric(8,2)NO0Value of mas worked hours.
mas_department_codemes_repartocharacter(4)NO''::bpcharCode of mas department code.
mas_job_title_codemes_qualificacharacter(4)NO''::bpcharCode of mas job title code.
mas_role_codemes_mansionecharacter(4)NO''::bpcharCode of mas role code.
mas_cost_center_codemes_cencoscharacter(4)NO''::bpcharCode of mas cost center code.
mas_pay_grade_levelmes_livellocharacter(2)NO''::bpcharValue of mas pay grade level.
mas_late_arrivals_countmes_num_ritanumeric(2,0)NO0Number of late arrival events occurred during the month.
mas_late_arrivals_total_minutesmes_tot_ritanumeric(4,0)NO0Value of mas late arrivals total minutes.
mas_worked_daysmes_giorni_lavoratinumeric(2,0)NO0Value of mas worked days.
mas_paid_daysmes_giorni_retribuitinumeric(2,0)NO0Value of mas paid days.
mas_inps_weeksmes_settimane_inpsnumeric(2,0)NO0Number of contribution weeks for social security (INPS).
mas_compensated_hoursmes_ore_compensatenumeric(8,2)NO0Value of mas compensated hours.
mas_inail_positionmes_pos_inailcharacter(20)NO''::bpcharValue of mas inail position.
mas_last_work_hours_valuemes_orlav_ultimanumeric(8,2)NO0Value of mas last work hours value.
mas_is_lockedmes_bollatobooleanNOfalseIndicates if the month is finalized (bollato) and cannot be edited without authorization.
mas_complementary_hoursmes_ore_complementarinumeric(8,2)NO0Value of mas complementary hours.
mas_missing_clockings_countmes_omessebolnumeric(3,0)NO0Number of missing clock-in/out events (omesse bollature).
mas_supplementary_hoursmes_ore_supplementarinumeric(8,2)NO0Value of mas supplementary hours.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_cart_mese_mes_rap_id_to_rapportitenant_id, mas_employment_idhr.employment_relationshipstenant_id, er_idRESTRICTCASCADE
fk_mas_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_monthly_attendance_summariesid
  • Unique: c_uk_mas_employment_date_tenanttenant_id, mas_employment_id, mas_reference_date
  • Unique: c_uk_mas_id_tenanttenant_id, mas_id

Indexes

NameUniqueMethodColumns / expression
idx_mas_date_lookupNObtreetenant_id, mas_reference_date
idx_mas_locked_lookupNObtreetenant_id, mas_is_locked