Skip to main content

pres.daily_shift_planning

Schema: pres
English table: pres.daily_shift_planning
Italian original table: pres.cartellino_turni
Description: Planned daily shifts and schedule assignments for employees.

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOIdentifier of the related record.
dsp_idcart_idintegerNOUnique identifier for the shift planning record.
tenant_idtenant_idintegerNOIdentifier of the related tenant.
dsp_employment_idcart_rap_idintegerYESReference to the employee employment contract.
dsp_date_strcart_datacharacter varying(8)YESReference date in string format (typically YYYYMMDD).
dsp_shift_codecart_cod_oracharacter varying(4)YESThe code of the shift scheduled for this day.
dsp_free_schedule_detailscart_orari_libericharacter varying(50)YESCustom or non-standard schedule details for free-form planning.
dsp_reason_codecart_causalecharacter varying(4)YESReason code for special shift assignments (e.g., on-call, smart working).
dsp_reason_clockings_strcart_tim_causalecharacter varying(200)YESValue of dsp reason clockings str.
dsp_week_numbercart_settimanaintegerYESNumeric value for dsp week number.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_cartellino_turni_cart_rap_id_to_rapportitenant_id, dsp_employment_idhr.employment_relationshipstenant_id, er_idRESTRICTCASCADE
fk_dsp_shift_typetenant_id, dsp_shift_codepres.shift_definitionstenant_id, shd_codeCASCADERESTRICT
fk_dsp_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_daily_shift_planningid
  • Unique: c_uk_dsp_employment_date_tenanttenant_id, dsp_employment_id, dsp_date_str
  • Unique: c_uk_dsp_id_tenanttenant_id, dsp_id

Indexes

NameUniqueMethodColumns / expression
idx_dsp_date_lookupNObtreetenant_id, dsp_date_str