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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| product_id | uuid | not null, references products.id | |
| name | varchar(60) | not null | |
| position | integer | not null |
Indexes (1)
(product_id, name)unique
Relationships
product_options.product_idreferencesproducts.idproduct_option_values.option_idreferencesproduct_options