Skip to main content

pres.collective_attendance_calendars

Schema: pres
English table: pres.collective_attendance_calendars
Italian original table: pres.tabcalen
Description: Defines company-wide or group-wide closures and collective absences, avoiding individual manual entries.

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOPrimary Key.
cac_calendar_idcal_idintegerNOInternal unique identifier for the calendar entry.
tenant_idtenant_idintegerNOIdentifier of the related tenant.
cac_codecod_calencharacter(4)NO''::bpcharUnique mnemonic code for the collective absence period.
cac_valid_fromcal_dalla_datadateNOStart date of the collective absence.
cac_valid_tocal_alla_datadateNOEnd date of the collective absence.
cac_from_employee_numbercal_da_matricolacharacter(6)NO''::bpcharStarting employee number for the target range.
cac_to_employee_numbercal_a_matricolacharacter(6)NO''::bpcharEnding employee number for the target range.
cac_from_department_codecal_da_repcharacter(4)NO''::bpcharStarting department code for the target range.
cac_to_department_codecal_a_repcharacter(4)NO''::bpcharCode of cac to department code.
cac_from_job_title_codecal_da_qualcharacter(4)NO''::bpcharCode of cac from job title code.
cac_to_job_title_codecal_a_qualcharacter(4)NO''::bpcharCode of cac to job title code.
cac_descriptioncal_descrizionecharacter(40)NO''::bpcharDescription of cac description.
cac_justification_codecal_cod_giustcharacter(4)NO''::bpcharJustification code (e.g., FER) to be applied to all matching employees.
cac_justified_hourscal_ore_giustnumeric(6,2)NO0Number of hours to justify automatically.
cac_payroll_hourscal_ore_paghenumeric(6,2)NO0Value of cac payroll hours.
cac_is_holidaycal_festivobooleanNOfalseFlag indicating if the period should be treated as a public holiday.
cac_is_cancelledcal_annullatobooleanNOfalseBoolean flag for cac is cancelled.
cac_skip_validation_checkscal_no_controlbooleanNOfalseBoolean flag for cac skip validation checks.
cac_validity_rangecal_periododaterangeYESGENERATED: daterange(cac_valid_from, cac_valid_to, '[]'::text)PostgreSQL daterange for period-based queries and overlap checks.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_cac_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_collective_attendance_calendarsid
  • Unique: c_uk_cac_tenant_calendar_idtenant_id, cac_calendar_id
  • Unique: c_uk_cac_tenant_codetenant_id, cac_code

Indexes

NameUniqueMethodColumns / expression
idx_cac_tenant_calendar_idNObtreetenant_id, cac_calendar_id
idx_cac_validity_range_gistNOgistcac_validity_range