Schema: hr
English table: hr.x_inps_positions
Italian original table: hr.x_posizioni_inps
Description: Lookup table for INPS social security positions. Service table.
Overview
- Columns: 6
- 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. |
xisp_id | xposinps_id | integer | NO | | Identifier of the related xisp record. |
xisp_description | xposinps_descrizione | character varying(50) | NO | | Description text. |
xisp_code | xposinps_codice | character varying(13) | NO | | Social security registration number (Matricola INPS). |
xisp_company_id | xposinps_az_id | integer | NO | | Reference to the company (aziende). |
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.rapporti_posizioni_inps | fk_rapposinps_xposinps_id | rapposinps_xposinps_id, tenant_id | xisp_id, tenant_id |
Constraints
- Primary key:
pk_x_inps_positions → id
- Unique:
uk_xisp_id_tenant → xisp_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_xisp_company_tenant | NO | btree | tenant_id, xisp_company_id |
idx_xisp_id_tenant | NO | btree | tenant_id, xisp_id |
idx_xisp_tenant | NO | btree | tenant_id |
Navigation