Schema: hr
English table: hr.x_weekdays
Italian original table: hr.x_giorni
Description: Lookup table for days of the week (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. |
xwd_id | xgiorni_id | integer | NO | | Technical ID for the day (usually 1-7). |
xwd_name | xgiorni_denominazione | character varying(15) | NO | | Name of the day (e.g., Monday, Tuesday). |
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_weekdays → id
- Unique:
uk_xwd_id_tenant → xwd_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_xwd_id_tenant | NO | btree | tenant_id, xwd_id |
idx_xwd_tenant | NO | btree | tenant_id |
Navigation