Skip to main content

hr.training_course_competencies

Schema: hr
English table: hr.training_course_competencies
Italian original table: hr.corsi_competenze
Description: Links training courses to competencies, with a step/level increment associated to the course.

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOSurrogate primary key.
tcc_idcorcomp_idintegerNOBusiness identifier of the course-competency link (unique per tenant).
tcc_course_idcorcomp_cor_idintegerNOReferenced training course identifier.
tcc_competency_idcorcomp_comp_idintegerNOReferenced competency identifier.
tcc_stepcorcomp_stepnumeric(5,2)NOStep/level increment associated with the competency for this course.
tenant_idtenant_idintegerYESTenant identifier for row-level segregation.
colcustomcolcustomjsonbYES'{}'::jsonbCustom fields in JSON format.
_deleted_deletedbooleanYESfalseTechnical soft-delete flag (true = logically hidden).

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_training_course_competencies_competencytcc_competency_id, tenant_idhr.competenciescpt_id, tenant_idRESTRICTRESTRICT
fk_training_course_competencies_coursetcc_course_id, tenant_idhr.training_coursestc_id, tenant_idRESTRICTRESTRICT
fk_training_course_competencies_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_training_course_competenciesid
  • Unique: uk_training_course_competencies_tcc_idtcc_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_tcc_tenantNObtreetenant_id
idx_tcc_tenant_competencyNObtreetenant_id, tcc_competency_id) WHERE (_deleted = false
idx_tcc_tenant_courseNObtreetenant_id, tcc_course_id) WHERE (_deleted = false
idx_tcc_tenant_tcc_idNObtreetenant_id, tcc_id) WHERE (_deleted = false