Skip to main content

hr.competencies

Schema: hr
English table: hr.competencies
Italian original table: hr.competenze
Description: Competencies used for evaluations, roles, and training mappings.

Overview

  • Columns: 20
  • Primary key: id
  • Outgoing foreign keys: 2
  • Incoming foreign keys: 4
  • Indexes: 3

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOSurrogate primary key.
cpt_idcomp_idintegerNOCompetency internal identifier, unique per tenant.
cpt_namecomp_denominazionecharacter varying(100)NOCompetency name.
cpt_notescomp_commentotextNOCompetency notes or description.
cpt_competency_type_idcomp_compt_idintegerNOReference to the competency type.
cpt_scale_f_mincomp_scalaf_minimonumeric(3,0)NOMinimum value for scale F.
cpt_scale_f_maxcomp_scalaf_massimonumeric(3,0)NOMaximum value for scale F.
cpt_scale_f_stepcomp_scalaf_incrementonumeric(6,2)NOIncrement step for scale F.
cpt_scale_f_weightcomp_scalaf_pesonumeric(2,0)NOWeight for scale F.
cpt_scale_e_mincomp_scalae_minimonumeric(3,0)NOMinimum value for scale E.
cpt_scale_e_maxcomp_scalae_massimonumeric(3,0)NOMaximum value for scale E.
cpt_scale_e_stepcomp_scalae_incrementonumeric(6,2)NOIncrement step for scale E.
cpt_scale_e_weightcomp_scalae_pesonumeric(2,0)NOWeight for scale E.
cpt_scale_v_mincomp_scalav_minimonumeric(3,0)NOMinimum value for scale V.
cpt_scale_v_maxcomp_scalav_massimonumeric(3,0)NOMaximum value for scale V.
cpt_scale_v_stepcomp_scalav_incrementonumeric(6,2)NOIncrement step for scale V.
cpt_scale_v_weightcomp_scalav_pesonumeric(2,0)NOWeight for scale V.
tenant_idtenant_idintegerYESTenant identifier.
colcustomcolcustomjsonbYES'{}'::jsonbCustom fields in JSON format.
_deleted_deletedbooleanYESfalseSoft delete flag.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_competencies_tenant_idtenant_idcloud.tenantsten_internal_idRESTRICTCASCADE
fk_competencies_type_idcpt_competency_type_id, tenant_idhr.competency_typesctyp_id, tenant_idRESTRICTRESTRICT

Referenced by

From tableForeign keySource columnsTarget columns
hr.performance_evaluation_form_itemsfk_scval_comp_idpefi_competence_id, tenant_idcpt_id, tenant_id
hr.person_competency_scoresfk_prcpsc_competency_idpcs_competency_id, tenant_idcpt_id, tenant_id
hr.position_competency_requirementsfk_pcr_competencypcr_competency_id, tenant_idcpt_id, tenant_id
hr.training_course_competenciesfk_training_course_competencies_competencytcc_competency_id, tenant_idcpt_id, tenant_id

Constraints

  • Primary key: pk_competenciesid
  • Unique: uk_competencies_cpt_id_tenantcpt_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_competencies_tenantNObtreetenant_id
idx_competencies_tenant_cptNObtreetenant_id, cpt_id) WHERE (_deleted = false
idx_competencies_tenant_typeNObtreetenant_id, cpt_competency_type_id) WHERE (_deleted = false