tango-api-schema 2.1.22 → 2.1.25
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
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
userId: {
|
|
15
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
16
|
+
},
|
|
17
|
+
isActive:{
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default:true
|
|
20
|
+
},
|
|
21
|
+
type:{
|
|
22
|
+
type: String,
|
|
23
|
+
enum:["consultant"]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
timestamps: true,
|
|
29
|
+
strict: true,
|
|
30
|
+
versionKey: false,
|
|
31
|
+
} );
|
|
32
|
+
|
|
33
|
+
auditUsersSchema.index({
|
|
34
|
+
email: 1,
|
|
35
|
+
type: 1,
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export default mongoose.model( 'auditUsers', auditUsersSchema, 'auditUsers' );
|
|
39
|
+
|
package/schema/client.model.js
CHANGED