hr.employee_inps_positions
Schema: hr
English table: hr.employee_inps_positions
Italian original table: hr.rapporti_posizioni_inps
Description: Association between employment relationships and INPS positions over time.
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. | |
eip_id | rapposinps_id | integer | NO | Logical identifier of the INPS position assignment (unique per tenant). | |
eip_employment_relationship_id | rapposinps_rap_id | integer | NO | Reference to the employment relationship. | |
eip_inps_position_id | rapposinps_xposinps_id | integer | NO | Reference to the INPS position. | |
eip_start_date | rapposinps_dal | date | NO | Start date of the INPS position. | |
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. |
eip_end_date | rapposinps_al | date | YES | End date of the INPS position. | |
eip_period | rapposinps_periodo | daterange | YES | GENERATED: daterange(eip_start_date, eip_end_date, '[]'::text) | Date range of the INPS position assignment. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|---|---|---|---|---|
fk_eip_inps_position | eip_inps_position_id, tenant_id | hr.x_inps_positions | xisp_id, tenant_id | RESTRICT | RESTRICT |
fk_eip_employment_relationship | eip_employment_relationship_id, tenant_id | hr.employment_relationships | er_id, tenant_id | RESTRICT | CASCADE |
fk_tenant_id | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
No incoming foreign keys found.
Constraints
- Primary key:
employee_inps_positions_pkey→id - Unique:
k_rapposinps_id_unique→eip_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|---|---|---|
idx_employee_inps_positions_eip_id_tenant | NO | btree | tenant_id, eip_id) WHERE (_deleted = false |
idx_employee_inps_positions_eip_er_id_tenant | NO | btree | tenant_id, eip_employment_relationship_id) WHERE (_deleted = false |
idx_employee_inps_positions_eip_inps_position_id_tenant | NO | btree | tenant_id, eip_inps_position_id) WHERE (_deleted = false |
idx_employee_inps_positions_tenant | NO | btree | tenant_id |
idx_employee_inps_positions_tenant_eip_period_gist | NO | gist | tenant_id, eip_period) WHERE (_deleted = false |
idx_employee_inps_positions_tenant_eip_er_period_gist | NO | gist | tenant_id, eip_employment_relationship_id, eip_period) WHERE (_deleted = false |
Navigation
- Back to main index
- [Back to
hrindex]../)