tango-api-schema 2.1.22 → 2.1.23

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/index.js CHANGED
@@ -44,6 +44,7 @@ import lowcountReasonModel from "./schema/lowcountReason.model.js";
44
44
  import auditUserWalletModel from "./schema/auditUserWallet.model.js";
45
45
  import mailOnlyuserModel from "./schema/mailOnlyuser.model.js";
46
46
  import empDetectionOutputModel from "./schema/empDetectionOutput.model.js";
47
+ import auditUsersModel from "./schema/auditUsers.model.js";
47
48
 
48
49
 
49
50
 
@@ -94,5 +95,6 @@ export default {
94
95
  lowcountReasonModel,
95
96
  auditUserWalletModel,
96
97
  mailOnlyuserModel,
97
- empDetectionOutputModel
98
+ empDetectionOutputModel,
99
+ auditUsersModel
98
100
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.1.22",
3
+ "version": "2.1.23",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -0,0 +1,36 @@
1
+ /**
2
+ * @name api_audit_user
3
+ */
4
+
5
+ // NPM Modules
6
+ import mongoose from 'mongoose';
7
+
8
+ // Schema
9
+ const auditUsersSchema = new mongoose.Schema( {
10
+ email: {
11
+ type: String,
12
+ trim:true
13
+ },
14
+ isActive:{
15
+ type: Boolean,
16
+ default:true
17
+ },
18
+ type:{
19
+ type: String,
20
+ enum:["consultant"]
21
+ }
22
+
23
+ },
24
+ {
25
+ timestamps: true,
26
+ strict: true,
27
+ versionKey: false,
28
+ } );
29
+
30
+ auditUsersSchema.index({
31
+ email: 1,
32
+ type: 1,
33
+ });
34
+
35
+ export default mongoose.model( 'auditUsers', auditUsersSchema, 'auditUsers' );
36
+