Fix API Error before M5

This commit is contained in:
Nông Đức Huy
2026-08-13 23:20:23 +07:00
parent d5cacc1208
commit 7688657d3c
13 changed files with 315 additions and 36 deletions
+8
View File
@@ -476,6 +476,14 @@ model Product {
metaDescription String? @map("meta_description")
metadata Json?
/// Seeds generated variant SKUs, e.g. "VEL-NOC" -> "VEL-NOC-BLACK-M".
///
/// Stored rather than re-derived, because adding a colourway a year later
/// must extend the same SKU family. Falling back to the slug produced
/// "AO-GIO-CHAY-DEM-NOCTURNE-BLACK-XL" sitting next to "VEL-NOC-BLACK-M" on
/// the same product.
skuPrefix String? @map("sku_prefix") @db.VarChar(24)
/// ---- Read-model projection, derived from this product's variants --------
///
/// Denormalised deliberately. Sorting a listing by price and rendering a