@cendo/database-schemas 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CLAUDE.md CHANGED
@@ -129,7 +129,7 @@ index.js # Exports path to schemas/ directory
129
129
  - **OrderLog** — Order event logging (order, level, label, message, meta). TTL: 90 days
130
130
 
131
131
  ### Products
132
- - **Product** — Product/SKU catalog (shop, name, sku_id, seller_sku, fulfillment_sku, customize_sku, status). Full-text index on name/sku_id/fulfillment_sku/customize_sku
132
+ - **Product** — Product/SKU catalog (shop, name, sku_id, seller_sku, fulfillment_sku, customize_sku, design_type, mockup, design, status). Full-text index on name/sku_id/fulfillment_sku/customize_sku
133
133
 
134
134
  ### Shops & Settings
135
135
  - **Shop** — Store/shop configuration (shop_id, type, status, fulfillment_store, default_carrier, nhanh_id)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cendo/database-schemas",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "keywords": [],
@@ -50,6 +50,14 @@ const Product = new Schema({
50
50
  trim: true,
51
51
  },
52
52
 
53
+ /** Design mode: 'customize' (allows personalization) | 'standard' (fixed design, no customization) */
54
+ design_type: {
55
+ type: String,
56
+ enum: ['customize', 'standard'],
57
+ default: 'standard',
58
+ index: true,
59
+ },
60
+
53
61
  /** Reference to the Media record for the product mockup image */
54
62
  mockup: {
55
63
  type: Schema.Types.ObjectId,