Skip to main content

Location Property Value

Overview

The LocationPropertyValue entity represents specific property values assigned to individual Location entities, allowing each location to have customized property settings. This table links properties defined in LocationProperty to actual Location records, storing values for each assigned property.

Table Structure

The following table outlines the SQL columns for the location_property_values table, providing a brief description of each.

ColumnTypeDescriptionExample
idString (ULID)Unique identifier for the entity.01JAP8RJBN-8ZTPXSGY-J9GSDPE1
enabledBooleanIf the entity is enabled or not.true
created_dateDateTimeDate the entity was created.2024-12-31T19:48:44Z
created_byStringPerson who created the entity.TamakiMES
modified_dateDateTimeDate the entity was modified. Value is null upon creation, and gets initially populated upon the first edit.2024-12-31T19:48:44Z
modified_byStringLast person to modify the entity. Value is null upon creation, and gets initially populated upon the first edit.TamakiMES
notesStringNotes about the entity.This entity has these extra notes
spare1StringThe first spare column that can be used for additional context on the entity.some extra context 1
spare2StringThe second spare column that can be used for additional context on the entity.some extra context 2
spare3StringThe third spare column that can be used for additional context on the entity.some extra context 3
blob_valueBlobBinary data if the property type is binary-compatible.N/A
data_typeString (Enum)Data type of the property value, corresponding to the property’s data type.FLOAT
date_valueDatetimeDate value for the property if applicable.2024-05-01 00:00:00
float_valueDoubleFloating-point value if the property is of type FLOAT.10.5
int_valueBigIntInteger value if the property type is INTEGER.100
string_valueStringString value for the property if the type is STRING.Property value text
location_idString (ULID)References the Location associated with this property value. See locations.01JAP8R5RT-3FPXQABY-7KQZT6VF
property_idString (ULID)References the specific LocationProperty assigned to the location. See location_properties.01JAP8RJBN-4VYZUKE1-LY2QHV8X

Field Details

blob_value, date_value, float_value, int_value, string_value

These columns hold the actual property values, with the relevant field populated based on the data_type of the property. For example:

  • blob_value is used if the property is a binary type.
  • date_value stores date values.
  • float_value holds floating-point values.
  • int_value stores integer values.
  • string_value holds text-based values.

location_id

References the Location associated with this property value, enabling specific property settings per location. See locations for details.

property_id

References the LocationProperty assigned to the location, linking to a defined property and its characteristics. See location_properties for details.

Relationship Structure

Each entry in the location_property_values table assigns a specific value to a property for an individual location, allowing unique configurations across locations. The table uses a composite unique key on location_id and property_id to prevent duplicate property assignments for the same location.