Schema: hr
English table: hr.x_months
Italian original table: hr.x_mesi
Description: Lookup table for months of the year (Service table).
Overview
- Columns: 4
- 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. |
xmo_id | xmese_id | integer | NO | | Technical ID for the month (usually 1-12). |
xmo_name | xmese_denominazione | character varying(15) | NO | | Full name of the month (e.g., January, February). |
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_months → id
- Unique:
uk_xmo_id_tenant → xmo_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_xmo_id_tenant | NO | btree | tenant_id, xmo_id |
idx_xmo_tenant | NO | btree | tenant_id |
Navigation