Skip to main content

hr.employment_inail_positions

Schema: hr
English table: hr.employment_inail_positions
Italian original table: hr.rapporti_posizioni_inail
Description: Assignment of INAIL (Italian National Institute for Insurance against Accidents at Work) insurance positions to employment relationships.

Overview

  • Columns: 10
  • Primary key: id
  • Outgoing foreign keys: 3
  • Incoming foreign keys: 0
  • Indexes: 6

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOInternal surrogate primary key.
eip_idrapposina_idintegerNOBusiness identifier for the assignment, unique per tenant.
eip_employment_relationship_idrapposina_rap_idintegerNOReference to the employment relationship.
eip_inail_position_idrapposina_posin_idintegerNOReference to the specific INAIL position code.
eip_valid_fromrapposina_daldateNOStart date of the insurance position validity.
tenant_idtenant_idintegerYESTenant identifier for row ownership and RLS filtering.
colcustomcolcustomjsonbYES'{}'::jsonbCustom fields in JSON format.
_deleted_deletedbooleanYESfalseLogical deletion flag.
eip_valid_torapposina_aldateYESEnd date of the insurance position validity.
eip_periodrapposina_periododaterangeYESGENERATED: daterange(eip_valid_from, eip_valid_to, '[]'::text)Temporal range of validity (daterange), generated from start and end dates.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_eip_employment_relationshipeip_employment_relationship_id, tenant_idhr.employment_relationshipser_id, tenant_idRESTRICTCASCADE
fk_eip_inail_positioneip_inail_position_id, tenant_idhr.x_inail_positionsxip_id, tenant_idRESTRICTRESTRICT
fk_eip_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_eipid
  • Unique: uk_eip_id_tenanteip_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_eip_emp_period_gistNOgisttenant_id, eip_employment_relationship_id, eip_period) WHERE (_deleted = false
idx_eip_emp_rel_tenantNObtreetenant_id, eip_employment_relationship_id) WHERE (_deleted = false
idx_eip_id_tenantNObtreetenant_id, eip_id) WHERE (_deleted = false
idx_eip_inail_pos_tenantNObtreetenant_id, eip_inail_position_id) WHERE (_deleted = false
idx_eip_period_gistNOgisttenant_id, eip_period) WHERE (_deleted = false
idx_eip_tenantNObtreetenant_id