product_options table

The product_options table in the E-commerce Database Schema schema has 4 columns, keyed by id, with 1 foreign key to products. 1 column in product_option_values references it.

The axes a product varies on, e.g. Size and Colour.

Columns (4)

Columns of the product_options table
ColumnTypeConstraintsDescription
iduuidprimary key
product_iduuidnot null, references products.id
namevarchar(60)not null
positionintegernot null

Indexes (1)

  • (product_id, name) unique

Relationships