Schema: hr
English table: hr.x_regions
Italian original table: hr.x_regione
Description: Lookup table for administrative regions (Service table).
Overview
- Columns: 5
- Primary key: id
- Outgoing foreign keys: 1
- Incoming foreign keys: 0
- Indexes: 2
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|
id | id | integer | NO | | Surrogate primary key. |
xre_id | xreg_id | integer | NO | | Identifier of the related xre record. |
xre_code | xreg_code | character varying(2) | NO | | National statistical code for the region (e.g., ISTAT code). |
xre_name | xreg_regione | character varying(100) | NO | | Display name for xre. |
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
No incoming foreign keys found.
Constraints
- Primary key:
pk_x_regions → id
- Unique:
uk_xre_id_tenant → xre_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_xre_id_tenant | NO | btree | tenant_id, xre_id |
idx_xre_tenant | NO | btree | tenant_id |
Navigation