@pintahub/database-schemas 4.1.2 → 4.1.4

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": "4.1.2",
3
+ "version": "4.1.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,32 @@
1
+ const {Schema} = require('mongoose')
2
+
3
+
4
+ const TrackPage = new Schema({
5
+ store: {
6
+ type: Schema.Types.ObjectId,
7
+ index: true,
8
+ required: true,
9
+ },
10
+
11
+ url: {
12
+ type: String,
13
+ trim: true,
14
+ },
15
+
16
+ status_code: {
17
+ type: Number,
18
+ },
19
+
20
+ updated_at: {
21
+ type: Date,
22
+ default: Date.now
23
+ },
24
+
25
+ created_at: {
26
+ type: Date,
27
+ default: Date.now
28
+ }
29
+ })
30
+
31
+
32
+ module.exports = TrackPage
@@ -43,6 +43,7 @@ const TransferJob = new Schema({
43
43
 
44
44
  destination_product: {
45
45
  type: Schema.Types.ObjectId,
46
+ index: true,
46
47
  },
47
48
 
48
49
  override_product: {