Schema: hr
English table: hr.room_booking_types
Italian original table: hr.in_riu_tipo_prenotazione
Description: Lookup table for room booking modalities (e.g., Immediate, Requires Approval, Recurring).
Overview
- Columns: 6
- 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. |
rbt_id | riultp_id | integer | NO | | Unique booking type identifier within a tenant. |
rbt_description | riultp_descrizione | character varying(150) | NO | | Description of the booking modality. |
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_rbt_tenant | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
| From table | Foreign key | Source columns | Target columns |
|---|
hr.rooms | fk_rm_booking_type | rm_booking_type_id, tenant_id | rbt_id, tenant_id |
Constraints
- Primary key:
pk_room_booking_types → id
- Unique:
uk_room_booking_types_id → rbt_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_rbt_id_tenant | NO | btree | tenant_id, rbt_id) WHERE (_deleted = false |
idx_rbt_tenant | NO | btree | tenant_id |
Navigation