Skip to main content

hr.employment_relationship_details

Schema: hr
English table: hr.employment_relationship_details
Italian original table: hr.rapporti_det
Description: Time-bound details for an employment relationship, including contractual level, time type and weekly hours (multi-tenant).

Overview

  • Columns: 17
  • Primary key: id
  • Outgoing foreign keys: 5
  • Incoming foreign keys: 0
  • Indexes: 9

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOSurrogate primary key.
erd_coderapd_idintegerNOBusiness identifier for the employment relationship detail (unique per tenant).
erd_employment_relationship_idrapd_rap_idintegerNOEmployment relationship identifier this detail record refers to.
erd_start_daterapd_data_iniziodateNOStart date (inclusive) of the detail validity.
erd_job_grade_idrapd_conq_idintegerNOJob grade identifier (qualification) applied during the validity period.
erd_job_level_idrapd_conl_idintegerNOJob level identifier applied during the validity period.
erd_job_role_idrapd_conm_idintegerNOJob role identifier applied during the validity period.
erd_weekly_workable_hoursrapd_ore_lavorabili_settimanalinumeric(6,2)NOWeekly workable hours for the employment relationship during the validity period.
erd_daily_hours_patternrapd_ore_per_giornicharacter varying(40)NOSerialized daily hours pattern (e.g., hours per day distribution).
erd_time_type_idrapd_tipt_idintegerNOTime type identifier (e.g., full-time/part-time classification).
erd_part_time_coefficientrapd_coeff_ptimenumeric(8,4)NOPart-time coefficient applied during the validity period.
erd_is_on_callrapd_a_chiamatabooleanNOWhether the employment relationship is on-call during the validity period.
tenant_idtenant_idintegerYESTenant identifier.
colcustomcolcustomjsonbYES'{}'::jsonbCustom fields stored as JSON.
_deleted_deletedbooleanYESfalseSoft delete flag (technical).
erd_end_daterapd_aldateYESEnd date (inclusive) of the detail validity.
erd_valid_periodrapd_periododaterangeYESGENERATED: daterange(erd_start_date, erd_end_date, '[]'::text)Generated validity period as a daterange derived from start_date and end_date (inclusive).

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_erd_employment_relationship_iderd_employment_relationship_id, tenant_idhr.employment_relationshipser_id, tenant_idRESTRICTCASCADE
fk_erd_job_grade_iderd_job_grade_id, tenant_idhr.agreement_qualificationsaq_code, tenant_idRESTRICTRESTRICT
fk_erd_job_level_iderd_job_level_id, tenant_idhr.agreement_levelsal_code, tenant_idRESTRICTRESTRICT
fk_erd_tenant_idtenant_idcloud.tenantsten_internal_idRESTRICTCASCADE
fk_erd_time_type_iderd_time_type_id, tenant_idhr.x_working_time_typesxwtt_id, tenant_idRESTRICTRESTRICT

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_employment_relationship_detailsid
  • Unique: uk_erd_code_tenanterd_code, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_erd_tenantNObtreetenant_id
idx_erd_tenant_codeNObtreetenant_id, erd_code) WHERE (_deleted = false
idx_erd_tenant_emprNObtreetenant_id, erd_employment_relationship_id) WHERE (_deleted = false
idx_erd_tenant_empr_period_gistNOgisttenant_id, erd_employment_relationship_id, erd_valid_period) WHERE (_deleted = false
idx_erd_tenant_gradeNObtreetenant_id, erd_job_grade_id) WHERE (_deleted = false
idx_erd_tenant_levelNObtreetenant_id, erd_job_level_id) WHERE (_deleted = false
idx_erd_tenant_period_gistNOgisttenant_id, erd_valid_period) WHERE (_deleted = false
idx_erd_tenant_roleNObtreetenant_id, erd_job_role_id) WHERE (_deleted = false
idx_erd_tenant_time_typeNObtreetenant_id, erd_time_type_id) WHERE (_deleted = false