tango-api-schema 2.2.17 → 2.2.19

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": "tango-api-schema",
3
- "version": "2.2.17",
3
+ "version": "2.2.19",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -14,13 +14,20 @@ const auditUsersSchema = new mongoose.Schema( {
14
14
  userId: {
15
15
  type: mongoose.Schema.Types.ObjectId,
16
16
  },
17
- isActive:{
18
- type: Boolean,
19
- default:true
17
+ month:{
18
+ type:Number
19
+ },
20
+ week:{
21
+ type:Number
20
22
  },
21
- type:{
22
- type: String,
23
- enum:["consultant"]
23
+ fileDate:{
24
+ type:Array
25
+ },
26
+ lateLogin:{
27
+ type:Number
28
+ },
29
+ leave:{
30
+ type:Number
24
31
  }
25
32
 
26
33
  },
@@ -32,7 +39,14 @@ const auditUsersSchema = new mongoose.Schema( {
32
39
 
33
40
  auditUsersSchema.index({
34
41
  email: 1,
35
- type: 1,
42
+ });
43
+
44
+ auditUsersSchema.index({
45
+ week: 1,
46
+ });
47
+
48
+ auditUsersSchema.index({
49
+ month: 1,
36
50
  });
37
51
 
38
52
  export default mongoose.model( 'auditUsers', auditUsersSchema, 'auditUsers' );
@@ -83,6 +83,11 @@ const store = new mongoose.Schema(
83
83
  default: "active"
84
84
  },
85
85
  edge: {
86
+ compressionRate:{
87
+ type: Number,
88
+ trim: true,
89
+ default: 50,
90
+ },
86
91
  apiVersion:{
87
92
  type: String,
88
93
  trim: true,