Skip to main content

pres.shift_definitions

Schema: pres
English table: pres.shift_definitions
Italian original table: pres.orari
Description: Master table for work shift models, theoretical punching times, and calculation logic.

Overview

  • Columns: 47
  • Primary key: id
  • Outgoing foreign keys: 1
  • Incoming foreign keys: 7
  • Indexes: 0

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOIdentifier of the related record.
shd_idora_idintegerNOUnique internal identifier for the shift.
tenant_idtenant_idintegerNOIdentifier of the related tenant.
shd_codecod_oracharacter(4)NO''::bpcharShort alphanumeric code for the shift (e.g., FULL, NIGHT).
shd_descriptionora_descrizionecharacter(40)NO''::bpcharExtended description of the work schedule.
shd_time_1ora_t1numeric(4,0)NO0Theoretical 1st entry time (HHMM format).
shd_time_2ora_t2numeric(4,0)NO0Theoretical 1st exit time (HHMM format).
shd_time_3ora_t3numeric(4,0)NO0Theoretical 2nd entry time (HHMM format).
shd_time_4ora_t4numeric(4,0)NO0Theoretical 2nd exit time (HHMM format).
shd_time_5ora_t5numeric(4,0)NO0Time associated with shd time 5.
shd_time_6ora_t6numeric(4,0)NO0Time associated with shd time 6.
shd_time_7ora_t7numeric(4,0)NO0Time associated with shd time 7.
shd_time_8ora_t8numeric(4,0)NO0Time associated with shd time 8.
shd_is_mandatory_1ora_obb1booleanNOfalseFlag: indicates if the 1st entry is mandatory for shift validity.
shd_is_mandatory_2ora_obb2booleanNOfalseBoolean flag for shd is mandatory 2.
shd_is_mandatory_3ora_obb3booleanNOfalseBoolean flag for shd is mandatory 3.
shd_is_mandatory_4ora_obb4booleanNOfalseBoolean flag for shd is mandatory 4.
shd_is_mandatory_5ora_obb5booleanNOfalseBoolean flag for shd is mandatory 5.
shd_is_mandatory_6ora_obb6booleanNOfalseBoolean flag for shd is mandatory 6.
shd_is_mandatory_7ora_obb7booleanNOfalseBoolean flag for shd is mandatory 7.
shd_is_mandatory_8ora_obb8booleanNOfalseBoolean flag for shd is mandatory 8.
shd_break_start_indexora_inipausanumeric(1,0)NO0Pointer to which time pair represents the start of the break.
shd_auto_insert_justificationsora_ins_autobooleanNOfalseBoolean flag for shd auto insert justifications.
ora_cod_cau1ora_cod_cau1character(4)NO''::bpcharValue of ora cod cau1.
ora_ore_cau1ora_ore_cau1numeric(4,0)NO0Value of ora ore cau1.
ora_minimo_lav1ora_minimo_lav1numeric(4,0)NO0Value of ora minimo lav1.
ora_solo_nonlav1ora_solo_nonlav1booleanNOfalseBoolean flag for ora solo nonlav1.
ora_cod_cau2ora_cod_cau2character(4)NO''::bpcharValue of ora cod cau2.
ora_ore_cau2ora_ore_cau2numeric(4,0)NO0Value of ora ore cau2.
ora_minimo_lav2ora_minimo_lav2numeric(4,0)NO0Value of ora minimo lav2.
ora_solo_nonlav2ora_solo_nonlav2booleanNOfalseBoolean flag for ora solo nonlav2.
shd_shift_type_indexora_turnonumeric(1,0)NO0Value of shd shift type index.
shd_is_night_shiftora_notturnobooleanNOfalseFlag: indicates if the shift crosses midnight or is classified as night work.
shd_is_holiday_shiftora_festivobooleanNOfalseFlag: indicates if the shift is specific for holidays/Sundays.
shd_standard_hoursora_ore_ordinarienumeric(4,0)NO0Expected standard working minutes for this shift.
shd_correction_minutesora_correzionenumeric(4,0)NO0Value of shd correction minutes.
shd_rounding_minutesora_quadranumeric(4,0)NO0Rounding value (quadratura) applied to the final calculated hours.
shd_overtime_profile_codeora_prof_strcharacter(4)NO''::bpcharReference to the overtime calculation profile to be applied.
ora_ini_cau1ora_ini_cau1numeric(4,0)NO0Value of ora ini cau1.
ora_end_cau1ora_end_cau1numeric(4,0)NO0Value of ora end cau1.
ora_ini_cau2ora_ini_cau2numeric(4,0)NO0Value of ora ini cau2.
ora_end_cau2ora_end_cau2numeric(4,0)NO0Value of ora end cau2.
shd_post_processing_expressionora_expr_aftertextNO''::textSQL expression or script for custom post-calculation logic.
shd_short_nameora_abbreviazionecharacter(4)NO''::bpcharAbbreviated name for compact calendar views.
shd_color_hexora_colorecharacter varying(7)YESHexadecimal color code for UI visualization.
shd_is_flexibleora_variabilebooleanNOfalseBoolean flag for shd is flexible.
_deleted_deletedbooleanNOfalseLogical deletion flag (soft-delete).

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_shd_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE

Referenced by

From tableForeign keySource columnsTarget columns
pres.clocking_reason_mappingsfk_crm_shifttenant_id, crm_target_shift_codetenant_id, shd_code
pres.daily_attendance_detailsfk_dad_shift_typetenant_id, dad_shift_codetenant_id, shd_code
pres.daily_shift_planningfk_dsp_shift_typetenant_id, dsp_shift_codetenant_id, shd_code
pres.shift_advanced_settingsfk_sas_shift_definitionstenant_id, sas_shift_codetenant_id, shd_code
pres.shift_attendance_profilesfk_sap_shift_definitionstenant_id, sap_shift_codetenant_id, shd_code
pres.shift_flexibility_rulesfk_sfr_shift_definitionstenant_id, sfr_shift_idtenant_id, shd_id
pres.weekly_schedule_detailsfk_wsd_shift_definitiontenant_id, wsd_shift_codetenant_id, shd_code

Constraints

  • Primary key: pk_shift_definitionsid
  • Unique: c_uk_shd_code_tenanttenant_id, shd_code
  • Unique: c_uk_shd_id_tenanttenant_id, shd_id

Indexes

No indexes detected.