hr.performance_evaluation_form_items
Schema: hr
English table: hr.performance_evaluation_form_items
Italian original table: hr.scheda_valutazione_link
Description: Link table connecting evaluation templates to specific competencies or skills to be assessed.
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. |
pefi_id | scval_id | integer | NO | | Identifier of the related pefi record. |
pefi_form_id | scval_scava_id | integer | NO | | Reference to the parent evaluation form template. |
pefi_item_type_id | scval_tipo | integer | NO | | Internal classification of the evaluation item (e.g., numeric rating, text, skill). |
pefi_competence_id | scval_comp_id | integer | NO | | Reference to the specific competence/skill defined in the system. |
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_scval_comp_id | pefi_competence_id, tenant_id | hr.competencies | cpt_id, tenant_id | RESTRICT | RESTRICT |
fk_scval_scava_id | pefi_form_id, tenant_id | hr.performance_evaluation_forms | pef_id, tenant_id | RESTRICT | RESTRICT |
fk_tenant_id | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
No incoming foreign keys found.
Constraints
- Primary key:
pk_performance_evaluation_form_items → id
- Unique:
uk_pefi_id_tenant → pefi_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_pefi_competence_tenant | NO | btree | tenant_id, pefi_competence_id) WHERE (_deleted = false |
idx_pefi_form_tenant | NO | btree | tenant_id, pefi_form_id) WHERE (_deleted = false |
idx_pefi_id_tenant | NO | btree | tenant_id, pefi_id) WHERE (_deleted = false |
idx_pefi_tenant | NO | btree | tenant_id |
Navigation