Skip to main content

hr.special_regulations

Schema: hr
English table: hr.special_regulations
Italian original table: hr.leggi_speciali
Description: Registry of special labor laws, employment regulations, or tax incentive schemes.

Overview

  • Columns: 7
  • Primary key: id
  • Outgoing foreign keys: 1
  • Incoming foreign keys: 1
  • Indexes: 2

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOInternal unique identifier (surrogate key).
regulation_code_idlegspe_idintegerNOFunctional regulation identifier, unique within the tenant.
titlelegspe_titlecharacter varying(100)NOShort title or name of the regulation.
descriptionlegspe_descriptioncharacter varying(200)NODetailed description of the regulation or law.
tenant_idtenant_idintegerYESTenant identifier for data isolation.
colcustomcolcustomjsonbYES'{}'::jsonbCustom metadata fields in JSON format.
_deleted_deletedbooleanYESfalseTechnical flag for soft delete.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_special_regulations_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

From tableForeign keySource columnsTarget columns
hr.employment_special_regulation_assignmentsfk_esra_special_regulationesra_special_regulation_id, tenant_idregulation_code_id, tenant_id

Constraints

  • Primary key: pk_special_regulationsid
  • Unique: uk_special_regulations_code_tenantregulation_code_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_special_regulations_tenantNObtreetenant_id
idx_sr_code_tenantNObtreetenant_id, regulation_code_id) WHERE (_deleted = false