Skip to main content

pres.holiday_calendar

Schema: pres
English table: pres.holiday_calendar
Italian original table: pres.festivita
Description: Calendar of national and local holidays with rules for payroll calculation and work shifts.

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOIdentifier of the related record.
hol_idfest_idintegerNOIdentifier of the related hol.
tenant_idtenant_idintegerNOIdentifier of the related tenant.
hol_datefest_datadateNODate associated with hol date.
hol_descriptionfest_descrizionecharacter(40)NO''::bpcharDescription of hol description.
hol_is_observed_on_different_datefest_spostatabooleanNOfalseDate associated with hol is observed on different date.
hol_observed_datefest_data_spostatadateNOThe actual date the holiday is observed if different from the calendar date (e.g., bridge days).
hol_reason_codefest_causalecharacter(4)NO''::bpcharCode of hol reason code.
hol_calculation_modefest_modonumeric(1,0)NO0Value of hol calculation mode.
hol_valuefest_valorenumeric(8,2)NO0Value of hol value.
hol_job_title_filterfest_qualificacharacter(4)NO''::bpcharValue of hol job title filter.
hol_is_easter_relatedfest_pasquabooleanNOfalseBoolean flag for hol is easter related.
hol_is_workablefest_lavorabilinumeric(1,0)NO0Value of hol is workable.
hol_worked_reason_codefest_causale_lavcharacter(4)NO''::bpcharCode of hol worked reason code.
hol_worked_calculation_modefest_modo_lavnumeric(1,0)NO0Value of hol worked calculation mode.
hol_worked_valuefest_valore_lavnumeric(8,2)NO0Value of hol worked value.
hol_work_site_patternfest_sede_lavorocharacter varying(50)YES''::character varyingFilters holidays based on specific company locations (essential for Patron Saint days).
hol_is_patron_saint_dayfest_santo_patrononumeric(1,0)YES0Value of hol is patron saint day.
hol_standard_day_minutesfest_day_valuenumeric(6,2)YES480Standard duration of the holiday in minutes (default 480 = 8h).

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_hol_reason_typetenant_id, hol_reason_codepres.attendance_reasonstenant_id, ar_codeCASCADERESTRICT
fk_hol_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_holiday_calendarid
  • Unique: c_uk_hol_id_tenanttenant_id, hol_id

Indexes

NameUniqueMethodColumns / expression
idx_hol_date_lookupNObtreetenant_id, hol_date
idx_hol_observed_date_lookupNObtreetenant_id, hol_observed_date