hr.training_course_sessions
Schema: hr
English table: hr.training_course_sessions
Italian original table: hr.corsi_sessioni
Description: Records for training course sessions.
Overview
- Columns: 11
- Primary key: id
- Outgoing foreign keys: 2
- Incoming foreign keys: 1
- Indexes: 4
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|
id | id | integer | NO | | Surrogate primary key. |
tcs_id | cors_id | integer | NO | | Identifier of the related tcs record. |
tcs_activated_course_id | cors_cora_id | integer | NO | | Identifier of the related tcs activated course record. |
tcs_on | cors_data | date | NO | | Tcs on. |
tcs_time | cors_ora | character varying(5) | NO | | Text value. |
tcs_location | cors_luogo | text | NO | | Text value. |
tcs_duration_minutes | cors_durata | integer | NO | | Numeric value. |
tcs_topic | cors_argomento | text | NO | | Text value. |
tenant_id | tenant_id | integer | YES | | Tenant identifier for data isolation. |
colcustom | colcustom | jsonb | YES | '{}'::jsonb | JSON payload containing additional attributes. |
_deleted | _deleted | boolean | YES | false | Flag indicating whether the record is soft-deleted. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|
fk_training_course_sessions_activated_course | tcs_activated_course_id, tenant_id | hr.activated_training_courses | atc_id, tenant_id | RESTRICT | RESTRICT |
fk_training_course_sessions_tenant | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
| From table | Foreign key | Source columns | Target columns |
|---|
hr.training_course_attendance | fk_training_course_attendance_session | tca_session_id, tenant_id | tcs_id, tenant_id |
Constraints
- Primary key:
pk_training_course_sessions → id
- Unique:
uk_training_course_sessions_tcs_id → tcs_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_tcs_tenant | NO | btree | tenant_id |
idx_tcs_tenant_activated_course | NO | btree | tenant_id, tcs_activated_course_id) WHERE (_deleted = false |
idx_tcs_tenant_on | NO | btree | tenant_id, tcs_on) WHERE (_deleted = false |
idx_tcs_tenant_tcs_id | NO | btree | tenant_id, tcs_id) WHERE (_deleted = false |
Navigation