hr.training_course_path_links
Schema: hr
English table: hr.training_course_path_links
Italian original table: hr.corsi_percorsi_link
Description: Links training courses to training paths, with an ordering within the path.
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. |
tcpl_id | percorl_id | integer | NO | | Business identifier of the course-path link (unique per tenant). |
tcpl_path_id | percorl_percor_id | integer | NO | | Referenced training path identifier. |
tcpl_course_id | percorl_cor_id | integer | NO | | Referenced training course identifier. |
tcpl_order | percorl_order | integer | NO | | Ordering of the course within the training path. |
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_path_links_course | tcpl_course_id, tenant_id | hr.training_courses | tc_id, tenant_id | RESTRICT | RESTRICT |
fk_training_course_path_links_path | tcpl_path_id, tenant_id | hr.training_paths | training_path_id, tenant_id | RESTRICT | RESTRICT |
fk_training_course_path_links_tenant | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
No incoming foreign keys found.
Constraints
- Primary key:
pk_training_course_path_links → id
- Unique:
uk_training_course_path_links_tcpl_id → tcpl_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_tcpl_tenant | NO | btree | tenant_id |
idx_tcpl_tenant_course | NO | btree | tenant_id, tcpl_course_id) WHERE (_deleted = false |
idx_tcpl_tenant_path | NO | btree | tenant_id, tcpl_path_id) WHERE (_deleted = false |
idx_tcpl_tenant_tcpl_id | NO | btree | tenant_id, tcpl_id) WHERE (_deleted = false |
Navigation