created_at, updated_at, and deleted_at timestamps that Medusa manages.
Product
The shared master product. Tableproduct, id prefix prod.
Native relations:
variants:ProductVariant[], deleted with the productoptions:ProductOption[]through theProductProductOptionpivotimages:ProductImage[], deleted with the productcategories:ProductCategory[]throughproduct_category_productcollection:ProductCollection, nullabletype:ProductType, nullabletags:ProductTag[]throughproduct_tags
sellers:Seller[], the store allowlist inproduct_sellerproduct_attribute_values: attribute values attached to the productscoped_attributes: product-scoped attributes, read-onlychanges:ProductChange[], the audit and edit history, read-onlyreviews:Review[]
ProductVariant
One purchasable configuration of a product. Tableproduct_variant, id prefix variant.
Relations:
product (nullable), options (ProductOptionValue[] through product_variant_option), and images (ProductImage[]). Mercur links offers to variants through offer.variant_id. Each store’s price and stock live on the offer, not here.
ProductOption
An axis that variants vary on. Tableproduct_option, id prefix opt.
Relations:
products and values (ProductOptionValue[]). A variant-axis attribute mirrors one option through product_attribute.product_option_id.
ProductOptionValue
One value of an option. Tableproduct_option_value, id prefix optval.
Relations:
option (nullable), variants, and product_options.
ProductImage
A product image. Tableimage, id prefix img.
Relations:
product and variants.
ProductCategory
A node in the category tree. Tableproduct_category, id prefix pcat.
Relations:
parent_category (nullable), category_children (deleted with the parent), and products. Mercur adds sellers, media_images, and the product attribute link.
ProductCollection
A flat group of products. Tableproduct_collection, id prefix pcol.
Relations:
products. Mercur adds media_images.
ProductTag
A free-form label. Tableproduct_tag, id prefix ptag.
Relations:
products.
ProductType
A single classification per product. Tableproduct_type, id prefix ptyp.
Relations:
products.