@cendo/database-schemas 1.9.9 → 2.0.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/schemas/Order.js +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cendo/database-schemas",
3
- "version": "1.9.9",
3
+ "version": "2.0.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "keywords": [],
package/schemas/Order.js CHANGED
@@ -101,7 +101,8 @@ const Order = new Schema({
101
101
 
102
102
  last_synced_at: {
103
103
  type: Date,
104
- default: Date.now
104
+ default: Date.now,
105
+ index: true
105
106
  },
106
107
 
107
108
  nhanh_id: {
@@ -153,6 +154,11 @@ const Order = new Schema({
153
154
  index: true
154
155
  },
155
156
 
157
+ shipping_carrier: {
158
+ type: Schema.Types.ObjectId,
159
+ index: true
160
+ },
161
+
156
162
  sync_id: {
157
163
  type: String,
158
164
  trim: true,