Skip to main content

pres.employee_overtime_profile_assignments

Schema: pres
English table: pres.employee_overtime_profile_assignments
Italian original table: pres.profstr_assign
Description: Historical assignments of overtime calculation profiles to employees.

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOPrimary Key.
eopa_assignment_idstrass_idintegerNOInternal unique identifier for the assignment record.
tenant_idtenant_idintegerNOTenant identifier for data isolation.
eopa_valid_fromstrass_dalla_datadateNOStart date of the overtime profile assignment.
eopa_valid_tostrass_alla_datadateNOEnd date of the overtime profile assignment.
eopa_overtime_profile_codestrass_cod_stracharacter(4)NO''::bpcharReference code for the overtime calculation rules (linked to tabstra).
eopa_employee_idstrass_rap_idintegerNO0Foreign key to the employee or employment relationship.
eopa_validity_rangestrass_periododaterangeYESGENERATED: daterange(eopa_valid_from, eopa_valid_to, '[]'::text)PostgreSQL daterange representing the validity period for indexing and overlap checks.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_eopa_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE
fk_profstr_assign_strass_rap_id_to_rapportitenant_id, eopa_employee_idhr.employment_relationshipstenant_id, er_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_employee_overtime_profile_assignmentsid
  • Unique: c_uk_eopa_tenant_assignmenttenant_id, eopa_assignment_id

Indexes

NameUniqueMethodColumns / expression
idx_eopa_employee_idNObtreetenant_id, eopa_employee_id
idx_eopa_overtime_profile_codeNObtreetenant_id, eopa_overtime_profile_code
idx_eopa_validity_range_gistNOgisteopa_validity_range