Skip to main content

hr.room_properties

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 columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOSurrogate primary key.
rp_idriup_idintegerNOIdentifier of the related rp record.
rp_nameriulp_nomecharacter varying(50)NOThe name of the property or amenity.
rp_default_valueriulp_valoretextNOA default value or description for the property.
tenant_idtenant_idintegerYESTenant identifier for data isolation.
colcustomcolcustomjsonbYES'{}'::jsonbJSON payload containing additional attributes.
_deleted_deletedbooleanYESfalseFlag indicating whether the record is soft-deleted.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_rp_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

From tableForeign keySource columnsTarget columns
hr.room_amenitiesfk_ra_propertyra_property_id, tenant_idrp_id, tenant_id

Constraints

  • Primary key: pk_room_propertiesid
  • Unique: uk_room_properties_idrp_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_rp_id_tenantNObtreetenant_id, rp_id) WHERE (_deleted = false
idx_rp_tenantNObtreetenant_id