tango-api-schema 2.0.124 → 2.0.126

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
@@ -33,6 +33,7 @@ import billingModel from "./schema/billing.model.js";
33
33
  import auditClientDataModel from "./schema/auditClientData.model.js";
34
34
  import auditLogsModel from "./schema/auditLogs.model.js";
35
35
  import internalAuthModel from "./schema/internalAuth.model.js";
36
+ import paymentAccountModel from "./schema/paymentAccount.model.js";
36
37
 
37
38
  export default {
38
39
  leadModel,
@@ -69,5 +70,6 @@ export default {
69
70
  matLogModel,
70
71
  billingModel,
71
72
  auditLogsModel,
72
- internalAuthModel
73
+ internalAuthModel,
74
+ paymentAccountModel
73
75
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.0.124",
3
+ "version": "2.0.126",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -0,0 +1,53 @@
1
+ import mongoose from 'mongoose';
2
+
3
+ const paymentAccountSchema = new mongoose.Schema(
4
+ {
5
+ clientId: {
6
+ type: String,
7
+ required: true,
8
+ unique: true,
9
+ },
10
+ customerId:{
11
+ type: String,
12
+ required: true,
13
+ unique: true,
14
+ },
15
+ virtualAccId:{
16
+ type: String,
17
+ required: true,
18
+ unique: true,
19
+ },
20
+ bankAccId:{
21
+ type: String,
22
+ required: true,
23
+ unique: true,
24
+ },
25
+ accountNumber:{
26
+ type: String,
27
+ required: true,
28
+ unique: true,
29
+ },
30
+ paymentType:{
31
+ type: String,
32
+ },
33
+ status:{
34
+ type: String,
35
+ },
36
+ ifsc: {
37
+ type: String,
38
+ },
39
+ swiftCode:{
40
+ type: String,
41
+ },
42
+ branch:{
43
+ type: String,
44
+ }
45
+ },
46
+ {
47
+ strict: true,
48
+ versionKey: false,
49
+ timestamps: true,
50
+ },
51
+ );
52
+
53
+ export default mongoose.model( 'paymentAccount', paymentAccountSchema);
@@ -1,22 +1,25 @@
1
1
  import mongoose from 'mongoose';
2
-
2
+
3
3
  const roles = new mongoose.Schema(
4
4
  {
5
5
  roleName: {
6
6
  type: String,
7
- enum: [ 'superadmin', 'admin', 'user' ],
8
7
  },
9
- userType: {
8
+ roleType: {
10
9
  type: String,
11
- enum: [ 'client', 'tango', 'lead' ],
10
+ enum: [ 'client', 'tango' ],
11
+ },
12
+ roleDescription:{
13
+ type:String
12
14
  },
13
15
  isActive: {
14
16
  type: Boolean,
15
17
  default: true,
16
18
  },
17
- // AssignedUsers: {
18
- // type:Array
19
- // },
19
+ isDefault:{
20
+ type:Boolean,
21
+ default:false
22
+ },
20
23
  permission: [
21
24
  {
22
25
  featureName: {
@@ -50,5 +53,5 @@ const roles = new mongoose.Schema(
50
53
  timestamps: true,
51
54
  },
52
55
  );
53
-
54
- export default mongoose.model( 'standaredRoles', roles ,'standaredRoles');
56
+
57
+ export default mongoose.model( 'standaredRoles', roles ,'standaredRoles');