hr.person_training_path_course_links
Schema: hr
English table: hr.person_training_path_course_links
Italian original table: hr.corsi_percorsi_ana_link
Description: Links people to training paths and courses, with a reference date, within the tenant.
Overview
- Columns: 9
- Primary key: id
- Outgoing foreign keys: 4
- Incoming foreign keys: 0
- Indexes: 5
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|
id | id | integer | NO | | Surrogate primary key. |
person_training_path_course_link_id | peranal_id | integer | NO | | Tenant-scoped link identifier. |
training_path_id | peranal_percor_id | integer | NO | | Referenced training path identifier (tenant-scoped). |
training_course_id | peranal_cor_id | integer | NO | | Referenced training course identifier (tenant-scoped). |
link_date | peranal_date | date | NO | | Date associated with the link (e.g., assignment or enrollment date). |
person_id | peranal_ana_id | integer | NO | | Referenced person identifier (tenant-scoped). |
tenant_id | tenant_id | integer | YES | | Tenant identifier. |
colcustom | colcustom | jsonb | YES | '{}'::jsonb | Custom fields in JSON format. |
_deleted | _deleted | boolean | YES | false | Technical soft delete flag. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|
fk_ptpcl_person | person_id, tenant_id | hr.person_registry | pr_id, tenant_id | RESTRICT | CASCADE |
fk_ptpcl_tenant | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
fk_ptpcl_training_course | training_course_id, tenant_id | hr.training_courses | tc_id, tenant_id | RESTRICT | RESTRICT |
fk_ptpcl_training_path | training_path_id, tenant_id | hr.training_paths | training_path_id, tenant_id | RESTRICT | RESTRICT |
Referenced by
No incoming foreign keys found.
Constraints
- Primary key:
pk_person_training_path_course_links → id
- Unique:
uk_ptpcl_link_id → person_training_path_course_link_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_ptpcl_tenant | NO | btree | tenant_id |
idx_ptpcl_tenant_course | NO | btree | tenant_id, training_course_id) WHERE (_deleted = false |
idx_ptpcl_tenant_link_id | NO | btree | tenant_id, person_training_path_course_link_id) WHERE (_deleted = false |
idx_ptpcl_tenant_path | NO | btree | tenant_id, training_path_id) WHERE (_deleted = false |
idx_ptpcl_tenant_person | NO | btree | tenant_id, person_id) WHERE (_deleted = false |
Navigation