@pintahub/database-schemas 2.8.5 → 2.8.7

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": "2.8.5",
3
+ "version": "2.8.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/schemas/Group.js CHANGED
@@ -32,6 +32,7 @@ const Group = new Schema({
32
32
  items_count: {
33
33
  type: Number,
34
34
  default: 0,
35
+ index: true
35
36
  },
36
37
 
37
38
  style: {
@@ -0,0 +1,34 @@
1
+ const {Schema} = require('mongoose')
2
+ const MoneyObject = require('./MoneyObject')
3
+
4
+
5
+ const LogURL = new Schema({
6
+ url: {
7
+ type: String,
8
+ trim: true,
9
+ },
10
+
11
+ destination_url: {
12
+ type: String,
13
+ trim: true,
14
+ },
15
+
16
+ country: {
17
+ type: String,
18
+ trim: true,
19
+ default: 'VN'
20
+ },
21
+
22
+ updated_at: {
23
+ type: Date,
24
+ default: Date.now
25
+ },
26
+
27
+ created_at: {
28
+ type: Date,
29
+ default: Date.now
30
+ }
31
+ })
32
+
33
+
34
+ module.exports = LogURL