Schema: hr
English table: hr.room_properties
Italian original table: hr.in_riu_properties
Description: Definitions of attributes or amenities that can be associated with a room (e.g., Projector, AC, Capacity Details).
Overview
- Columns: 7
- Primary key: id
- Outgoing foreign keys: 1
- Incoming foreign keys: 1
- Indexes: 2
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|
id | id | integer | NO | | Surrogate primary key. |
rp_id | riup_id | integer | NO | | Identifier of the related rp record. |
rp_name | riulp_nome | character varying(50) | NO | | The name of the property or amenity. |
rp_default_value | riulp_valore | text | NO | | A default value or description for the property. |
tenant_id | tenant_id | integer | YES | | Tenant identifier for data isolation. |
colcustom | colcustom | jsonb | YES | '{}'::jsonb | JSON payload containing additional attributes. |
_deleted | _deleted | boolean | YES | false | Flag indicating whether the record is soft-deleted. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|
fk_rp_tenant | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
| From table | Foreign key | Source columns | Target columns |
|---|
hr.room_amenities | fk_ra_property | ra_property_id, tenant_id | rp_id, tenant_id |
Constraints
- Primary key:
pk_room_properties → id
- Unique:
uk_room_properties_id → rp_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_rp_id_tenant | NO | btree | tenant_id, rp_id) WHERE (_deleted = false |
idx_rp_tenant | NO | btree | tenant_id |
Navigation