Storages support the following field types.

Primitives

Primitive values are used for simple, scalar values.

TypeDescription
StringText data.
IntegerWhole numbers.
FloatFloating-point numbers.
DecimalPrecise decimal numbers, suitable for financial calculations.
BooleanTrue/false values.
DateTimeDate and time information.
AnyAny valid JSON value.

Composites

System-defined composites are used for storing structured data and cover common use cases.

TypeDescription
MediaIdeal for images, including captions, thumbnails, and more.
PricePrices with currency information.
PriceScalePrice ranges and scaled pricing information.
SEOSEO-related data like meta titles, descriptions, and keywords.
VendorVendor/supplier information, including name, contact details, and metadata.
WeightWeight values with unit information.
OptionProduct options with values and additional metadata.
SwatchColor or material swatches with preview images and metadata.

Enums

System-defined enums are string values that have a discrete set of possible values.

TypeDescription
AvailabilityAvailability attribute to tell users and Google whether you have a product in stock (default keys: in_stock, out_of_stock, preorder, backorder).
StockLevelStock level statuses for a product (default keys: low, medium, high).

Specials

Special fields are used for storing special values.

TypeDescription
Mapped ValueMaps to a value in a different storage.