Skip to main content

Relations Overview

RelationshipTypeDescription
Attribute → AttributeValueOne-to-ManyAn attribute has many values
Attribute → AttributePossibleValueOne-to-ManyAn attribute has many possible values

Data Models

Attribute

This documentation provides a reference to the Attribute data model. It belongs to the Attribute Module.
FieldTypeDescription
idPrimaryKeyModifier<IdProperty>The ID of the attribute.
nameTextPropertyThe name of the attribute
descriptionTextPropertyThe description of the attribute
is_requiredBooleanPropertyWhether the attribute is required. Defaults to false.
is_filterableBooleanPropertyWhether the attribute is filterable. Defaults to true.
handleTextPropertyThe unique handle of the attribute
ui_componentEnumProperty<["select", "multivalue", "unit", "toggle", "text_area", "color_picker"]>The UI component type for rendering the attribute. Defaults to select.
metadataJSONPropertyHolds custom data in key-value pairs.
valuesHasMany<AttributeValue>The associated AttributeValue records.
possible_valuesHasMany<AttributePossibleValue>The associated AttributePossibleValue records.

AttributeValue

This documentation provides a reference to the AttributeValue data model. It belongs to the Attribute Module.
FieldTypeDescription
idPrimaryKeyModifier<IdProperty>The ID of the attribute value.
valueTextPropertyThe value of the attribute value
rankNumberPropertyThe rank of the attribute value
metadataJSONPropertyHolds custom data in key-value pairs.
attributeBelongsTo<Attribute>The associated Attribute.

AttributePossibleValue

This documentation provides a reference to the AttributePossibleValue data model. It belongs to the Attribute Module.
FieldTypeDescription
idPrimaryKeyModifier<IdProperty>The ID of the attribute possible value.
valueTextPropertyThe value of the attribute possible value
rankNumberPropertyThe rank of the attribute possible value
metadataJSONPropertyHolds custom data in key-value pairs.
attributeBelongsTo<Attribute>The associated Attribute.