Schema: hr
English table: hr.x_inail_positions
Italian original table: hr.x_posizioni_inail
Description: Lookup table for INAIL insurance positions (PAT). Service table.
Overview
- Columns: 7
- Primary key: id
- Outgoing foreign keys: 1
- Incoming foreign keys: 1
- Indexes: 3
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|
id | id | integer | NO | | Surrogate primary key. |
xip_id | posin_id | integer | NO | | Identifier of the related xip record. |
xip_description | posin_descrizione | character varying(30) | NO | | Description text. |
xip_pat_code | posin_pat | character varying(20) | NO | | Posizione Assicurativa Territoriale (INAIL code). |
xip_company_id | posin_az_id | integer | NO | | Reference to the company (aziende). |
xip_meridiana_code | posin_codice_meridiana | character varying(4) | NO | | Code for xip meridiana. |
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_tenant_id | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
| From table | Foreign key | Source columns | Target columns |
|---|
hr.employment_inail_positions | fk_eip_inail_position | eip_inail_position_id, tenant_id | xip_id, tenant_id |
Constraints
- Primary key:
pk_x_inail_positions → id
- Unique:
uk_xip_id_tenant → xip_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_xip_company_tenant | NO | btree | tenant_id, xip_company_id |
idx_xip_id_tenant | NO | btree | tenant_id, xip_id |
idx_xip_tenant | NO | btree | tenant_id |
Navigation