Schema: hr
English table: hr.x_secondment_types
Italian original table: hr.x_tipi_distaccati
Description: Lookup table for secondment types (e.g., intra-group secondment, technical secondment).
Overview
- Columns: 4
- 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. |
xst_id | xdi_id | integer | NO | | Identifier of the related xst record. |
xst_description | xdi_description | character varying(50) | NO | | Description text. |
tenant_id | tenant_id | integer | YES | | Tenant identifier for data isolation. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|
fk_xst_tenant | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
| From table | Foreign key | Source columns | Target columns |
|---|
hr.rapporti_distaccati | fk_rapdi_xdi_id | rapdi_xdi_id, tenant_id | xst_id, tenant_id |
Constraints
- Primary key:
pk_x_secondment_types → id
- Unique:
c_uk_xst_id_tenant → xst_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_xst_id_tenant_lookup | NO | btree | tenant_id, xst_id |
idx_xst_tenant_base | NO | btree | tenant_id |
Navigation