tango-api-schema 2.2.169 → 2.2.171

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
@@ -98,6 +98,7 @@ import loginAttempt from "./schema/loginAttempt.model.js";
98
98
  import notification from "./schema/notification.model.js";
99
99
  import planoRevisionModel from "./schema/planoRevision.model.js";
100
100
 
101
+ import auditUserBaseSalaryModel from "./schema/auditUserBaseSalary.model.js";
101
102
 
102
103
 
103
104
  export default {
@@ -200,4 +201,5 @@ export default {
200
201
  loginAttempt,
201
202
  notification,
202
203
  planoRevisionModel
204
+ auditUserBaseSalaryModel
203
205
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.2.169",
3
+ "version": "2.2.171",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @name api_audit_user
3
+ */
4
+
5
+ // NPM Modules
6
+ import mongoose from 'mongoose';
7
+
8
+ // Schema
9
+ const baseSalarySchema = new mongoose.Schema( {
10
+ email: {
11
+ type: String,
12
+ trim:true
13
+ },
14
+ userType:{
15
+ type:String
16
+ },
17
+ userId: {
18
+ type: mongoose.Schema.Types.ObjectId,
19
+ },
20
+ montlySalary:{
21
+ type:Number
22
+ },
23
+ beforeCountCredit:{
24
+ type:Number
25
+ },
26
+ afterCountCredit:{
27
+ type:Number
28
+ }
29
+
30
+ },
31
+ {
32
+ timestamps: true,
33
+ strict: true,
34
+ versionKey: false,
35
+ } );
36
+
37
+ baseSalarySchema.index({
38
+ email: 1,
39
+ });
40
+
41
+ baseSalarySchema.index({
42
+ userType: 1,
43
+ });
44
+
45
+ export default mongoose.model( 'auditUserBaseSalary', baseSalarySchema, 'auditUserBaseSalary' );
46
+
@@ -1,7 +1,7 @@
1
1
  import mongoose from 'mongoose';
2
2
 
3
3
  // schema
4
- const collection = new mongoose.Schema( {
4
+ const collection = new mongoose.Schema({
5
5
  userId: {
6
6
  type: String,
7
7
  trim: true,
@@ -11,36 +11,36 @@ const collection = new mongoose.Schema( {
11
11
  },
12
12
  comment: {
13
13
  type: String,
14
- },
15
- timestamps:{
16
- type:Date,
17
- default:new Date()
18
- },
19
- taskType:{
20
- type:String,
21
- enum:['layout','fixture','vm']
22
- },
23
- commentType:{
24
- type:String,
25
- enum:['comment','approve','disapprove','publish'],
26
- default:"comment"
27
- },
28
- planoId:{
14
+ },
15
+ timestamps: {
16
+ type: Date,
17
+ default: new Date()
18
+ },
19
+ taskType: {
20
+ type: String,
21
+ enum: ['layout', 'fixture', 'vm']
22
+ },
23
+ responsetype: {
24
+ type: String,
25
+ enum: ['comment', 'approve', 'disapprove', 'publish'],
26
+ default: "comment"
27
+ },
28
+ planoId: {
29
29
  type: mongoose.Types.ObjectId,
30
- },
31
- floorId:{
30
+ },
31
+ floorId: {
32
32
  type: mongoose.Types.ObjectId,
33
- },
34
- clientId:{
35
- type:String
36
- }
33
+ },
34
+ clientId: {
35
+ type: String
36
+ }
37
37
 
38
38
  },
39
- {
40
- timestamps: true,
41
- strict: true,
42
- versionKey: false,
43
- } );
39
+ {
40
+ timestamps: true,
41
+ strict: true,
42
+ versionKey: false,
43
+ });
44
44
 
45
45
 
46
- export default mongoose.model( 'planoGlobalComment', collection );
46
+ export default mongoose.model('planoGlobalComment', collection);