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 column | Italian original column | Type | Null | Default / Generated | Description |
|---|
id | id | integer | NO | | Surrogate primary key. |
tcc_id | corcomp_id | integer | NO | | Business identifier of the course-competency link (unique per tenant). |
tcc_course_id | corcomp_cor_id | integer | NO | | Referenced training course identifier. |
tcc_competency_id | corcomp_comp_id | integer | NO | | Referenced competency identifier. |
tcc_step | corcomp_step | numeric(5,2) | NO | | Step/level increment associated with the competency for this course. |
tenant_id | tenant_id | integer | YES | | Tenant identifier for row-level segregation. |
colcustom | colcustom | jsonb | YES | '{}'::jsonb | Custom fields in JSON format. |
_deleted | _deleted | boolean | YES | false | Technical soft-delete flag (true = logically hidden). |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|
fk_training_course_competencies_competency | tcc_competency_id, tenant_id | hr.competencies | cpt_id, tenant_id | RESTRICT | RESTRICT |
fk_training_course_competencies_course | tcc_course_id, tenant_id | hr.training_courses | tc_id, tenant_id | RESTRICT | RESTRICT |
fk_training_course_competencies_tenant | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
No incoming foreign keys found.
Constraints
- Primary key:
pk_training_course_competencies → id
- Unique:
uk_training_course_competencies_tcc_id → tcc_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_tcc_tenant | NO | btree | tenant_id |
idx_tcc_tenant_competency | NO | btree | tenant_id, tcc_competency_id) WHERE (_deleted = false |
idx_tcc_tenant_course | NO | btree | tenant_id, tcc_course_id) WHERE (_deleted = false |
idx_tcc_tenant_tcc_id | NO | btree | tenant_id, tcc_id) WHERE (_deleted = false |
Navigation