Schema: hr
English table: hr.competency_types
Italian original table: hr.competenze_tipi
Description: Lookup table for competency types (tenant-scoped).
Overview
- Columns: 6
- Primary key: id
- Outgoing foreign keys: 1
- Incoming foreign keys: 1
- Indexes: 2
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|
id | id | integer | NO | | Surrogate primary key. |
ctyp_id | compt_id | integer | NO | | Business identifier of the competency type (unique per tenant). |
ctyp_name | compt_denominazione | character varying(30) | NO | | Competency type name/label. |
tenant_id | tenant_id | integer | YES | | Tenant identifier. |
colcustom | colcustom | jsonb | YES | '{}'::jsonb | Custom fields (JSON). |
_deleted | _deleted | boolean | YES | false | Soft-delete flag. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|
fk_tenant_id | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
| From table | Foreign key | Source columns | Target columns |
|---|
hr.competencies | fk_competencies_type_id | cpt_competency_type_id, tenant_id | ctyp_id, tenant_id |
Constraints
- Primary key:
pk_competency_types → id
- Unique:
uk_ctyp_tenant_ctyp → ctyp_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_ctyp_tenant | NO | btree | tenant_id |
idx_ctyp_tenant_ctyp | NO | btree | tenant_id, ctyp_id) WHERE (_deleted = false |
Navigation