Skip to main content

pres.daily_attendance_details

Schema: pres
English table: pres.daily_attendance_details
Italian original table: pres.cartellino
Description: Atomic daily timesheet records containing raw clockings, theoretical shifts, and processed work/absence hours.

Overview

  • Columns: 46
  • Primary key: id
  • Outgoing foreign keys: 2
  • Incoming foreign keys: 1
  • Indexes: 4

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOIdentifier of the related record.
dad_idcar_idintegerNOUnique internal identifier for the daily record.
tenant_idtenant_idintegerNOIdentifier of the related tenant.
dad_employment_idcar_rap_idintegerNOIdentifier of the related dad employment.
dad_datecar_datadateNOReference date for the attendance record.
dad_day_of_weekcar_n_giornonumeric(1,0)NO0Value of dad day of week.
dad_is_holidaycar_festivobooleanNOfalseBoolean flag for dad is holiday.
dad_theoretical_clockings_strcar_timteocharacter(100)NO''::bpcharSerialized string of expected clock-in/out times.
dad_actual_clockings_strcar_timreacharacter(100)NO''::bpcharSerialized string of raw clock-in/out events from terminals.
dad_rounded_clockings_strcar_timarrcharacter(100)NO''::bpcharValue of dad rounded clockings str.
dad_justifications_strcar_giustifcharacter(100)NO''::bpcharValue of dad justifications str.
dad_shift_codecod_oracharacter(4)NO''::bpcharCode of dad shift code.
dad_regular_hourscar_ore_ordinarienumeric(6,2)NO0Value of dad regular hours.
dad_excess_hourscar_ore_esuberonumeric(6,2)NO0Value of dad excess hours.
dad_recovery_hourscar_ore_recuperonumeric(6,2)NO0Value of dad recovery hours.
dad_overtime_hourscar_ore_straordinnumeric(6,2)NO0Time associated with dad overtime hours.
dad_absence_hourscar_ore_assenzanumeric(6,2)NO0Value of dad absence hours.
dad_workable_hourscar_ore_lavorabilinumeric(6,2)NO0Value of dad workable hours.
dad_worked_hourscar_ore_lavoratenumeric(6,2)NO0Value of dad worked hours.
dad_anomaly_codecar_anomaliacharacter(2)NO''::bpcharTwo-character code identifying specific daily calculation errors.
dad_is_lockedcar_bollatobooleanNOfalseIf true, the daily record is finalized and locked for payroll.
dad_is_historicalcar_storicobooleanNOfalseBoolean flag for dad is historical.
dad_is_manually_forcedcar_forzatobooleanNOfalseBoolean flag for dad is manually forced.
dad_is_theoretical_forcedcar_teo_forzatobooleanNOfalseBoolean flag for dad is theoretical forced.
dad_department_codecar_repartocharacter(4)NO''::bpcharCode of dad department code.
dad_job_title_codecar_qualificacharacter(4)NO''::bpcharCode of dad job title code.
dad_role_codecar_mansionecharacter(4)NO''::bpcharCode of dad role code.
dad_cost_center_codecar_cencoscharacter(4)NO''::bpcharCode of dad cost center code.
dad_pay_grade_levelcar_livellocharacter(4)NO''::bpcharValue of dad pay grade level.
car_turnocar_turnonumeric(1,0)NO0Value of car turno.
dad_late_entrance_1_minscar_ritardo_1numeric(3,0)NO0Value of dad late entrance 1 mins.
dad_late_entrance_2_minscar_ritardo_2numeric(3,0)NO0Value of dad late entrance 2 mins.
dad_is_missing_clockingcar_omessabooleanNOfalseBoolean flag for dad is missing clocking.
dad_excess_tier1_hourscar_esubero_f1numeric(6,2)NO0Value of dad excess tier1 hours.
dad_excess_tier2_hourscar_esubero_f2numeric(6,2)NO0Value of dad excess tier2 hours.
dad_excess_tier3_hourscar_esubero_f3numeric(6,2)NO0Value of dad excess tier3 hours.
dad_excess_tier4_hourscar_esubero_f4numeric(6,2)NO0Value of dad excess tier4 hours.
car_pausa_okcar_pausa_okbooleanYESfalseBoolean flag for car pausa ok.
dad_clocked_minutescar_ore_timbraturenumeric(4,0)NO0Value of dad clocked minutes.
dad_actual_clocked_minutescar_ore_timbrature_realinumeric(4,0)NO0Value of dad actual clocked minutes.
dad_is_theoretical_onlycar_teoricobooleanNOfalseBoolean flag for dad is theoretical only.
dad_paid_minutescar_ore_retribuitenumeric(4,0)YES0Value of dad paid minutes.
dad_week_numbercar_n_settimanaintegerYES0Numeric value for dad week number.
dad_needs_reviewcar_controllobooleanYESfalseBoolean flag for dad needs review.
dad_is_workable_hours_forcedcar_ore_lavorabili_forzatebooleanYESfalseBoolean flag for dad is workable hours forced.
dad_forced_workable_hours_valuecar_ore_lavorabili_forzate_valintegerYES0Value of dad forced workable hours value.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_cartellino_rap_id_to_rapportitenant_id, dad_employment_idhr.employment_relationshipstenant_id, er_idRESTRICTCASCADE
fk_dad_shift_typetenant_id, dad_shift_codepres.shift_definitionstenant_id, shd_codeCASCADERESTRICT

Referenced by

From tableForeign keySource columnsTarget columns
pres.daily_attendance_hours_distributionfk_dahd_daily_attendancetenant_id, dahd_daily_attendance_idtenant_id, dad_id

Constraints

  • Primary key: pk_daily_attendance_detailsid
  • Unique: c_uk_dad_employment_date_tenanttenant_id, dad_employment_id, dad_date
  • Unique: c_uk_dad_id_tenanttenant_id, dad_id

Indexes

NameUniqueMethodColumns / expression
idx_cartellino_car_anomaliaNObtreetenant_id, dad_anomaly_code
idx_cartellino_car_bollatoNObtreetenant_id, dad_is_locked
idx_cartellino_car_rap_idNObtreetenant_id, dad_employment_id
idx_cartellino_car_teoricoNObtreetenant_id, dad_is_theoretical_only