hr.rapporti_distaccati
Schema: hr
English table: hr.rapporti_distaccati
Italian original table: hr.rapporti_distaccati
Description: Records for rapporti distaccati.
Overview
- Columns: 10
- Primary key: id
- Outgoing foreign keys: 3
- Incoming foreign keys: 0
- Indexes: 6
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|---|---|---|---|---|
id | id | integer | NO | Surrogate primary key. | |
rapdi_id | rapdi_id | integer | NO | Identifier of the related rapdi record. | |
rapdi_rap_id | rapdi_rap_id | integer | NO | Identifier of the related rapdi rap record. | |
rapdi_xdi_id | rapdi_xdi_id | integer | NO | Identifier of the related rapdi xdi record. | |
rapdi_dal | rapdi_dal | date | NO | Rapdi dal. | |
rapdi_al | rapdi_al | date | NO | Rapdi al. | |
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. |
rapdi_periodo | rapdi_periodo | daterange | YES | GENERATED: daterange(rapdi_dal, rapdi_al, '[]'::text) | Rapdi periodo. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|---|---|---|---|---|
fk_rapdi_rap_id | rapdi_rap_id, tenant_id | hr.employment_relationships | er_id, tenant_id | RESTRICT | CASCADE |
fk_rapdi_xdi_id | rapdi_xdi_id, tenant_id | hr.x_secondment_types | xst_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:
rapporti_distaccati_pkey→id - Unique:
k_rapdi_id_unique→rapdi_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|---|---|---|
idx_rapporti_distaccati_rapdi_id_tenant | NO | btree | tenant_id, rapdi_id) WHERE (_deleted = false |
idx_rapporti_distaccati_rapdi_rap_id_tenant | NO | btree | tenant_id, rapdi_rap_id) WHERE (_deleted = false |
idx_rapporti_distaccati_rapdi_xdi_id_tenant | NO | btree | tenant_id, rapdi_xdi_id) WHERE (_deleted = false |
idx_rapporti_distaccati_tenant | NO | btree | tenant_id |
idx_rapporti_distaccati_tenant_rapdi_periodo_gist | NO | gist | tenant_id, rapdi_periodo) WHERE (_deleted = false |
idx_rapporti_distaccati_tenant_rapdi_rap_periodo_gist | NO | gist | tenant_id, rapdi_rap_id, rapdi_periodo) WHERE (_deleted = false |
Navigation
- Back to main index
- [Back to
hrindex]../)