@pintahub/database-schemas 4.6.2 → 4.7.0
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/package.json +1 -1
- package/schemas/Product.js +6 -0
- package/schemas/ProductReport.js +7 -0
package/package.json
CHANGED
package/schemas/Product.js
CHANGED
|
@@ -77,6 +77,12 @@ const Product = new Schema({
|
|
|
77
77
|
trim: true,
|
|
78
78
|
},
|
|
79
79
|
|
|
80
|
+
/** Computed display title = alternative_title || title. Consumer services compute this at write time. */
|
|
81
|
+
display_title: {
|
|
82
|
+
type: String,
|
|
83
|
+
trim: true,
|
|
84
|
+
},
|
|
85
|
+
|
|
80
86
|
/** Product type */
|
|
81
87
|
product_type: {
|
|
82
88
|
type: String,
|
package/schemas/ProductReport.js
CHANGED
|
@@ -76,6 +76,13 @@ const ProductReport = new Schema({
|
|
|
76
76
|
trim: true,
|
|
77
77
|
},
|
|
78
78
|
|
|
79
|
+
/** Reporter's country code, e.g. 'US', 'VN' (2-letter uppercase) */
|
|
80
|
+
country: {
|
|
81
|
+
type: String,
|
|
82
|
+
trim: true,
|
|
83
|
+
uppercase: true,
|
|
84
|
+
},
|
|
85
|
+
|
|
79
86
|
/** Reporter's IP address */
|
|
80
87
|
ip: {
|
|
81
88
|
type: String,
|