Skip to main content

hr.employment_agreement_assignments

Schema: hr
English table: hr.employment_agreement_assignments
Italian original table: hr.rapporti_contratti_link
Description: Assignments of specific Collective Labor Agreements (CCNL) to employment relationships, with validity periods.

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOSurrogate primary key.
eaa_idrapconl_idintegerNOLogical link identifier (unique per tenant).
eaa_er_idrapconl_rap_idintegerNOEmployment relationship identifier (references employment relationships).
eaa_agreement_coderapconl_con_idintegerNOContract identifier (references contracts).
eaa_start_daterapconl_daldateNOLink validity start date.
tenant_idtenant_idintegerYESTenant identifier (multi-tenant isolation).
colcustomcolcustomjsonbYES'{}'::jsonbCustom fields payload (JSON).
_deleted_deletedbooleanYESfalseTechnical soft-delete flag.
eaa_end_daterapconl_aldateYESLink validity end date.
eaa_periodrapconl_periododaterangeYESGENERATED: daterange(eaa_start_date, eaa_end_date, '[]'::text)Link validity period as daterange [start_date, end_date].

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_eaa_collective_agreementeaa_agreement_code, tenant_idhr.collective_agreementsca_code, tenant_idRESTRICTRESTRICT
fk_eaa_employment_relationshipeaa_er_id, tenant_idhr.employment_relationshipser_id, tenant_idRESTRICTCASCADE
fk_eaa_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_eaaid
  • Unique: uk_eaa_id_tenanteaa_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_eaa_agreement_tenantNObtreetenant_id, eaa_agreement_code) WHERE (_deleted = false
idx_eaa_er_period_gistNOgisttenant_id, eaa_er_id, eaa_period) WHERE (_deleted = false
idx_eaa_er_tenantNObtreetenant_id, eaa_er_id) WHERE (_deleted = false
idx_eaa_id_tenantNObtreetenant_id, eaa_id) WHERE (_deleted = false
idx_eaa_period_gistNOgisttenant_id, eaa_period) WHERE (_deleted = false
idx_eaa_tenantNObtreetenant_id