@pintahub/database-schemas 2.0.5 → 2.0.7

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pintahub/database-schemas",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -186,6 +186,17 @@ const Product = new Schema({
186
186
  index: true,
187
187
  },
188
188
 
189
+ available_for_sale: {
190
+ type: Boolean,
191
+ default: true,
192
+ index: true,
193
+ },
194
+
195
+ version: {
196
+ type: String,
197
+ trim: true,
198
+ },
199
+
189
200
  updated_at: {
190
201
  type: Date,
191
202
  default: Date.now
@@ -17,6 +17,12 @@ const SeoObject = new Schema({
17
17
 
18
18
 
19
19
  const ProductRaw = new Schema({
20
+ store: {
21
+ type: Schema.Types.ObjectId,
22
+ index: true,
23
+ required: true,
24
+ },
25
+
20
26
  product: {
21
27
  type: Schema.Types.ObjectId,
22
28
  required: true,