@pintahub/database-schemas 2.0.4 → 2.0.6

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.4",
3
+ "version": "2.0.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -4,6 +4,11 @@ const {Schema} = require('mongoose')
4
4
  const ImageObject = new Schema({
5
5
  _id: false,
6
6
 
7
+ id: {
8
+ type: String,
9
+ trim: true,
10
+ },
11
+
7
12
  altText: {
8
13
  type: String,
9
14
  trim: true,
@@ -186,6 +186,11 @@ const Product = new Schema({
186
186
  index: true,
187
187
  },
188
188
 
189
+ version: {
190
+ type: String,
191
+ trim: true,
192
+ },
193
+
189
194
  updated_at: {
190
195
  type: Date,
191
196
  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,