Skip to main content

pres.weekly_attendance_summaries

Schema: pres
English table: pres.weekly_attendance_summaries
Italian original table: pres.cart_sett
Description: Weekly aggregation of attendance data, including overtime tiers and anomaly tracking.

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOIdentifier of the related record.
was_idsett_idintegerNOInternal unique identifier for the weekly summary.
tenant_idtenant_idintegerNOIdentifier of the related tenant.
was_employment_idsett_rap_idintegerNOReference to the employee employment contract.
was_reference_datesett_datadateNOReference date for the week (usually the starting Monday).
was_worked_hourssett_ore_lavoratenumeric(6,0)YESTotal worked hours for the week.
was_regular_hourssett_ore_ordinarienumeric(6,0)YESOrdinary working hours within the weekly limit.
was_overtime_hourssett_ore_straordinnumeric(6,0)YESTotal overtime hours calculated for the week.
was_excess_hourssett_ore_esuberonumeric(6,0)YESValue of was excess hours.
was_excess_tier1_hourssett_esubero_f1numeric(6,0)YESHours exceeding the standard in the first tier (F1).
was_excess_tier2_hourssett_esubero_f2numeric(6,0)YESHours exceeding the standard in the second tier (F2).
was_excess_tier3_hourssett_esubero_f3numeric(6,0)YESValue of was excess tier3 hours.
was_excess_tier4_hourssett_esubero_f4numeric(6,0)YESValue of was excess tier4 hours.
was_absence_hourssett_ore_assenzanumeric(6,0)YESTotal absence hours recorded during the week.
was_justifications_summarysett_giustiftextNOTextual summary or serialized list of justifications applied.
was_clocked_hourssett_ore_timbraturenumeric(6,0)YESHours calculated based on rounded clocking events.
was_actual_clocked_hourssett_ore_timbrature_realinumeric(6,0)YESRaw hours calculated from actual clocking timestamps.
was_anomaly_codesett_anomaliacharacter(2)NO''::bpcharCode identifying any weekly calculation anomalies.
was_workable_hourssett_ore_lavorabilinumeric(6,0)YESValue of was workable hours.
was_notessett_notetextNOAdministrative notes for the week.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_cart_sett_sett_rap_id_to_rapportitenant_id, was_employment_idhr.employment_relationshipstenant_id, er_idRESTRICTCASCADE
fk_was_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_weekly_attendance_summariesid
  • Unique: c_uk_was_employment_date_tenanttenant_id, was_employment_id, was_reference_date
  • Unique: c_uk_was_id_tenanttenant_id, was_id

Indexes

No indexes detected.