Skip to main content

pres.employee_shift_assignments

Schema: pres
English table: pres.employee_shift_assignments
Italian original table: pres.profora_assign
Description: Assignment of weekly shift schemas to employees over time.

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOSurrogate primary key.
esa_idorass_idintegerNOLogical identifier of the assignment (unique per tenant).
tenant_idtenant_idintegerNOTenant identifier for data isolation.
esa_start_dateorass_dalla_datadateNOAssignment start date.
esa_end_dateorass_alla_datadateNOAssignment end date.
esa_shift_schema_codeorass_cod_proforacharacter(4)NO''::bpcharReference to the weekly shift schema code.
esa_employment_relationship_idorass_rap_idintegerNO0Reference to the employment relationship.
esa_periodorass_periododaterangeYESGENERATED: daterange(esa_start_date, esa_end_date, '[]'::text)Date range of the assignment.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_esa_shift_schematenant_id, esa_shift_schema_codepres.weekly_shift_schemastenant_id, wss_codeCASCADERESTRICT
fk_esa_employment_relationshiptenant_id, esa_employment_relationship_idhr.employment_relationshipstenant_id, er_idRESTRICTCASCADE
fk_profora_assign_tenant_id_to_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: employee_shift_assignments_pkeyid
  • Unique: profora_assign_orass_id_keytenant_id, esa_id

Indexes

NameUniqueMethodColumns / expression
idx_employee_shift_assignments_schema_codeNObtreetenant_id, esa_shift_schema_code
idx_employee_shift_assignments_periodNOgistesa_period
idx_employee_shift_assignments_er_idNObtreetenant_id, esa_employment_relationship_id