@pintahub/database-schemas 3.2.9 → 3.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pintahub/database-schemas",
3
- "version": "3.2.9",
3
+ "version": "3.3.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/schemas/Group.js CHANGED
@@ -1,5 +1,6 @@
1
1
  const {Schema} = require('mongoose')
2
2
 
3
+
3
4
  const Group = new Schema({
4
5
  store: {
5
6
  type: Schema.Types.ObjectId,
@@ -14,6 +15,12 @@ const Group = new Schema({
14
15
  index: true
15
16
  },
16
17
 
18
+ external_id: {
19
+ type: String,
20
+ trim: true,
21
+ index: true
22
+ },
23
+
17
24
  title: {
18
25
  type: String,
19
26
  trim: true,
@@ -287,14 +287,18 @@ const Product = new Schema({
287
287
  trim: true,
288
288
  },
289
289
 
290
+ deleted_at: {
291
+ type: Date,
292
+ },
293
+
290
294
  updated_at: {
291
295
  type: Date,
292
- default: Date.now
296
+ default: Date.now,
293
297
  },
294
298
 
295
299
  created_at: {
296
300
  type: Date,
297
- default: Date.now
301
+ default: Date.now,
298
302
  }
299
303
  })
300
304