products table

The products table in the E-commerce Database Schema schema has 8 columns, keyed by id, with 1 foreign key to brands. 5 columns in product_reviews, product_categories, product_options, product_variants and 1 more reference it.

The marketing-level item. Nothing is bought or stocked at this level, only at product_variants.

Columns (8)

Columns of the products table
ColumnTypeConstraintsDescription
iduuidprimary key
brand_iduuidreferences brands.id
titlevarchar(255)not null
slugvarchar(280)unique, not null
descriptiontext
statusproduct_statusnot null
published_attimestamptz
created_attimestamptznot null

Indexes (1)

  • (status, published_at)

Relationships