Skip to main content

pres.weekly_schedule_details

Schema: pres
English table: pres.weekly_schedule_details
Italian original table: pres.tabsett
Description: Detailed daily breakdown of weekly or multi-weekly shift rotation schemas.

Overview

  • Columns: 9
  • Primary key: id
  • Outgoing foreign keys: 3
  • Incoming foreign keys: 0
  • Indexes: 3

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOTechnical surrogate primary key.
wsd_detail_idset_idintegerNOUnique identifier for the schedule detail within the tenant.
tenant_idtenant_idintegerNOTenant identifier for data isolation.
wsd_schema_codecod_porcharacter(4)NO''::bpcharReference to the parent weekly shift schema (wss_code).
wsd_week_numberset_settimananumeric(2,0)NO0Week index for multi-week rotations (e.g., 1, 2 for bi-weekly cycles).
wsd_day_of_weekset_giornonumeric(1,0)NO0Day of the week (typically 1=Monday, 7=Sunday).
wsd_shift_codeset_cod_orariocharacter(4)NO''::bpcharThe specific daily shift (orari) assigned to this day.
wsd_sort_orderset_orderintegerNO0Ordering index for display purposes.
wsd_is_absence_dayset_assenzabooleanNOfalseIf true, indicates a day where no work is expected (rest day).

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_wsd_parent_schematenant_id, wsd_schema_codepres.proforatenant_id, cod_porCASCADECASCADE
fk_wsd_shift_definitiontenant_id, wsd_shift_codepres.shift_definitionstenant_id, shd_codeCASCADERESTRICT
fk_wsd_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_weekly_schedule_detailsid
  • Unique: c_uk_wsd_tenant_detail_idtenant_id, wsd_detail_id

Indexes

NameUniqueMethodColumns / expression
idx_wsd_tenant_detail_idNObtreetenant_id, wsd_detail_id
idx_wsd_tenant_schema_codeNObtreetenant_id, wsd_schema_code
idx_wsd_tenant_shift_codeNObtreetenant_id, wsd_shift_code