Skip to main content

hr.job_roles

Schema: hr
English table: hr.job_roles
Italian original table: hr.mansioni
Description: Master data for official CCNL job roles, used as the primary driver for compliance, medical suitability, and training requirements.

Overview

  • Columns: 7
  • Primary key: id
  • Outgoing foreign keys: 1
  • Incoming foreign keys: 7
  • Indexes: 2

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOInternal surrogate primary key.
jr_code_idman_idintegerNOBusiness identifier of the duty, unique per tenant.
jr_titleman_titlecharacter varying(50)NOShort title or name of the specific operational duty.
jr_descriptionman_descriptiontextNODetailed description of the tasks and responsibilities.
tenant_idtenant_idintegerYESTenant identifier for multi-tenant isolation.
colcustomcolcustomjsonbYES'{}'::jsonbCustom metadata fields in JSON format.
_deleted_deletedbooleanYESfalseSoft-delete flag (true = record deleted).

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_jr_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

From tableForeign keySource columnsTarget columns
hr.contract_level_job_linksfk_cljl_jobjob_code, tenant_idjr_code_id, tenant_id
hr.contract_level_job_linksfk_man_idjob_code, tenant_idjr_code_id, tenant_id
hr.employment_job_role_assignmentsfk_ejra_job_roleejra_job_role_code_id, tenant_idjr_code_id, tenant_id
hr.employment_position_assignmentsfk_epa_positionepa_position_code_id, tenant_idjr_code_id, tenant_id
hr.job_role_profile_linksfk_jrpl_job_rolejrpl_job_role_code_id, tenant_idjr_code_id, tenant_id
hr.job_role_suitability_requirementsfk_jrsr_job_rolejrsr_role_code_id, tenant_idjr_code_id, tenant_id
hr.job_role_training_requirementsfk_jrtr_job_rolejrtr_role_code_id, tenant_idjr_code_id, tenant_id

Constraints

  • Primary key: pk_jrid
  • Unique: uk_jr_code_tenantjr_code_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_jr_code_tenantNObtreetenant_id, jr_code_id) WHERE (_deleted = false
idx_jr_tenantNObtreetenant_id