Schema: hr
English table: hr.x_states_provinces
Italian original table: hr.x_provincia
Description: Lookup table for provinces or states (Service table).
Overview
- Columns: 7
- 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. |
xsp_id | xprov_id | integer | NO | | Identifier of the related xsp record. |
xsp_code | xprov_code | character varying(3) | NO | | Code for xsp. |
xsp_acronym | xprov_acronym | character varying(2) | NO | | Text value. |
xsp_name | xprov_description | character varying(150) | NO | | Display name for xsp. |
xsp_region_code | xprov_xreg_code | character varying(2) | NO | | Reference code for the geographical region. |
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_states_provinces → id
- Unique:
uk_xsp_id_tenant → xsp_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_xsp_id_tenant | NO | btree | tenant_id, xsp_id |
idx_xsp_tenant | NO | btree | tenant_id |
Navigation