@pintahub/database-schemas 1.5.1 → 1.5.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/schemas/Product.js +12 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pintahub/database-schemas",
3
- "version": "1.5.1",
3
+ "version": "1.5.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -96,6 +96,12 @@ const Product = new Schema({
96
96
  index: true,
97
97
  },
98
98
 
99
+ vendor: {
100
+ type: String,
101
+ trim: true,
102
+ index: true,
103
+ },
104
+
99
105
  group: {
100
106
  type: Schema.Types.ObjectId,
101
107
  },
@@ -117,6 +123,12 @@ const Product = new Schema({
117
123
  index: true,
118
124
  },
119
125
 
126
+ is_uploaded: {//temporary filed for uploading product images
127
+ type: Boolean,
128
+ default: false,
129
+ index: true,
130
+ },
131
+
120
132
  updated_at: {
121
133
  type: Date,
122
134
  default: Date.now