Skip to main content

pres.weekly_shift_schemas

Schema: pres
English table: pres.weekly_shift_schemas
Italian original table: pres.profora
Description: Weekly shift schemas defining cyclic work schedules.

Overview

  • Columns: 18
  • Primary key: id
  • Outgoing foreign keys: 1
  • Incoming foreign keys: 3
  • Indexes: 1

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOSurrogate primary key.
wss_idpor_idintegerNOLogical identifier of the weekly shift schema (unique per tenant).
tenant_idtenant_idintegerNOTenant identifier for data isolation.
wss_codecod_porcharacter(4)NO''::bpcharSchema code.
wss_descriptionpor_descrizionecharacter varying(40)NO''::character varyingSchema description.
wss_weekspor_settimanenumeric(4,2)NO0Number of weeks in the cycle.
wss_start_weekpor_sett_partenzanumeric(2,0)NO0Starting week of the cycle.
wss_start_datepor_data_partenzadateNOStart date of the schema.
wss_include_holidayspor_festiv_infrabooleanNOfalseIndicates whether holidays are included.
wss_respect_calendarpor_rispetta_calenbooleanNOfalseIndicates whether the calendar must be respected.
wss_time_typepor_tipo_temponumeric(1,0)NO0Type of time calculation.
wss_days_countpor_n_giorninumeric(1,0)NO0Number of working days.
wss_close_weekspor_chiudi_settimanebooleanNOfalseIndicates whether weeks are closed.
wss_week_expressionpor_expr_settimanatextNO''::textExpression defining weekly pattern.
wss_start_setpor_set_partenzanumeric(2,0)YES1Starting set index.
wss_variable_rest_dayspor_riposi_variabilibooleanYESfalseIndicates variable rest days.
wss_rest_codepor_codice_riposocharacter varying(4)YES''::character varyingCode for rest days.
_deleted_deletedbooleanNOfalseFlag indicating whether the record is soft-deleted.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_profora_tenant_id_to_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE

Referenced by

From tableForeign keySource columnsTarget columns
pres.employee_shift_assignmentsfk_esa_shift_schematenant_id, esa_shift_schema_codetenant_id, wss_code
pres.weekly_schedule_detailsfk_wsd_parent_schematenant_id, wsd_schema_codetenant_id, wss_code
pres.weekly_shift_schema_profilesfk_wssp_weekly_shift_schemastenant_id, wssp_schema_codetenant_id, wss_code

Constraints

  • Primary key: weekly_shift_schemas_pkeyid
  • Unique: profora_cod_por_keytenant_id, wss_code
  • Unique: profora_por_id_keytenant_id, wss_id

Indexes

NameUniqueMethodColumns / expression
idx_weekly_shift_schemas_wss_idNObtreetenant_id, wss_id) WHERE (_deleted = false