Schema: hr
English table: hr.x_municipalities
Italian original table: hr.x_comune
Description: Master table for municipalities/cities, used for tax code calculations and addresses (Service table).
Overview
- Columns: 6
- 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. |
xmu_id | xcom_id | integer | NO | | Identifier of the related xmu record. |
xmu_state_province_code | xcom_xprov_code | character varying(3) | NO | | Reference to the province, county, or state. |
xmu_code | xcom_code | character varying(6) | NO | | National administrative code (e.g., Italian Belfiore/Catastale code). |
xmu_name | xcom_description | character varying(150) | NO | | Display name for xmu. |
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_municipalities → id
- Unique:
uk_xmu_id_tenant → xmu_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_xmu_id_tenant | NO | btree | tenant_id, xmu_id |
idx_xmu_tenant | NO | btree | tenant_id |
Navigation