Skip to main content

pres.weekly_shift_schema_days

Schema: pres
English table: pres.weekly_shift_schema_days
Italian original table: pres.profora_settimane
Description: Detailed daily breakdown of a weekly shift schema. Defines which specific day of the cycle a date represents.

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOPrimary Key.
wssd_day_idproset_idintegerNOInternal unique identifier for the schema day record.
tenant_idtenant_idintegerNOTenant identifier for data isolation.
wssd_dateproset_datadateNOThe specific calendar date within the schema detail.
wssd_cycle_week_numberproset_settimananumeric(2,0)YES1The week number within the rotation cycle (e.g., week 1 of 4).
wssd_is_forcedproset_forzatobooleanYESfalseBoolean flag indicating if this day was manually overridden/forced.
wssd_schema_idproset_rap_idintegerNO0Foreign key to weekly_shift_schemas.id (or wss_schema_id).

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_profora_settimane_proset_rap_id_to_rapportitenant_id, wssd_schema_idhr.employment_relationshipstenant_id, er_idRESTRICTCASCADE
fk_wssd_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_weekly_shift_schema_daysid
  • Unique: c_uk_wssd_tenant_date_schematenant_id, wssd_date, wssd_schema_id
  • Unique: c_uk_wssd_tenant_daytenant_id, wssd_day_id

Indexes

No indexes detected.