@pintahub/database-schemas 4.2.0 → 4.2.2

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.2.0",
3
+ "version": "4.2.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -6,34 +6,40 @@ const MarketingCost = new Schema({
6
6
  store: {
7
7
  type: Schema.Types.ObjectId,
8
8
  index: true,
9
- required: true,
9
+ required: true
10
10
  },
11
11
 
12
12
  product: {
13
13
  type: Schema.Types.ObjectId,
14
- index: true,
14
+ index: true
15
15
  },
16
16
 
17
17
  campaign_name: {
18
+ type: String,
19
+ trim: true
20
+ },
21
+
22
+ account_name: {
18
23
  type: String,
19
24
  trim: true,
25
+ index: true,
20
26
  },
21
27
 
22
28
  cost: {
23
29
  type: MoneyObject,
24
- required: true,
30
+ required: true
25
31
  },
26
32
 
27
33
  date: {
28
34
  type: Date,
29
35
  required: true,
30
- index: true,
36
+ index: true
31
37
  },
32
38
 
33
39
  date_string: {
34
40
  type: String,
35
41
  required: true,
36
- index: true,
42
+ index: true
37
43
  },
38
44
 
39
45
  updated_at: {