tango-api-schema 2.6.62 → 2.6.63
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 +268 -268
- package/package.json +1 -1
- package/schema/bankTransaction.model.js +94 -94
- package/schema/billing.model.js +135 -135
- package/schema/camera.model.js +31 -31
- package/schema/client.model.js +5 -0
- package/schema/clientRequest.model.js +4 -1
- package/schema/estimate.model.js +89 -89
- package/schema/invoice.model.js +156 -156
- package/schema/paymentAccount.model.js +60 -60
- package/schema/paymentReminder.model.js +46 -46
- package/schema/purchaseOrder.model.js +59 -59
- package/schema/regionKey.model.js +31 -31
- package/schema/transaction.model.js +54 -54
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
|
|
3
|
-
// Bank-statement transactions uploaded from the billing "Transactions" tab.
|
|
4
|
-
// Separate from the existing `transaction` collection, which holds payment /
|
|
5
|
-
// wallet (Razorpay) entries. Each row is one statement line; `status` drives
|
|
6
|
-
// the reconciliation buckets shown in the UI.
|
|
7
|
-
const bankTransactionSchema = new mongoose.Schema(
|
|
8
|
-
{
|
|
9
|
-
date: {
|
|
10
|
-
type: Date
|
|
11
|
-
},
|
|
12
|
-
valueDate: {
|
|
13
|
-
type: Date
|
|
14
|
-
},
|
|
15
|
-
narration: {
|
|
16
|
-
type: String
|
|
17
|
-
},
|
|
18
|
-
refNo: {
|
|
19
|
-
type: String,
|
|
20
|
-
index: true
|
|
21
|
-
},
|
|
22
|
-
withdrawalAmt: {
|
|
23
|
-
type: Number,
|
|
24
|
-
default: 0
|
|
25
|
-
},
|
|
26
|
-
depositAmt: {
|
|
27
|
-
type: Number,
|
|
28
|
-
default: 0
|
|
29
|
-
},
|
|
30
|
-
// Signed convenience amount: deposit - withdrawal.
|
|
31
|
-
amount: {
|
|
32
|
-
type: Number
|
|
33
|
-
},
|
|
34
|
-
// Counterparty name extracted from the narration at upload time.
|
|
35
|
-
payer: {
|
|
36
|
-
type: String
|
|
37
|
-
},
|
|
38
|
-
source: {
|
|
39
|
-
type: String,
|
|
40
|
-
enum: [ 'bank', 'va', 'gateway', 'manual' ],
|
|
41
|
-
default: 'bank',
|
|
42
|
-
},
|
|
43
|
-
status: {
|
|
44
|
-
type: String,
|
|
45
|
-
enum: [ 'reconciled', 'needs_review', 'unmatched', 'excluded' ],
|
|
46
|
-
default: 'unmatched',
|
|
47
|
-
},
|
|
48
|
-
// Filled by the (future) classification pass / manual resolve.
|
|
49
|
-
identifiedClientId: {
|
|
50
|
-
type: String
|
|
51
|
-
},
|
|
52
|
-
identifiedClientName: {
|
|
53
|
-
type: String
|
|
54
|
-
},
|
|
55
|
-
invoice: {
|
|
56
|
-
type: String
|
|
57
|
-
},
|
|
58
|
-
// Mongo _id of the matched invoice — lets the UI open the invoice
|
|
59
|
-
// preview directly from a reconciled transaction.
|
|
60
|
-
invoiceId: {
|
|
61
|
-
type: String
|
|
62
|
-
},
|
|
63
|
-
// When one payment settles MULTIPLE invoices, the exact amount applied
|
|
64
|
-
// to each is recorded here so an Edit/re-reconcile can reverse precisely
|
|
65
|
-
// what was applied. (Single-invoice reconciles also populate this.)
|
|
66
|
-
appliedInvoices: [
|
|
67
|
-
{
|
|
68
|
-
invoiceId: { type: String },
|
|
69
|
-
invoice: { type: String },
|
|
70
|
-
amount: { type: Number },
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
resultNote: {
|
|
74
|
-
type: String
|
|
75
|
-
},
|
|
76
|
-
// Set when the team chose "Reach out to customer" in the resolve
|
|
77
|
-
// popup — the row stays in needs_review with a "Reaching out" badge.
|
|
78
|
-
contacted: {
|
|
79
|
-
type: Boolean,
|
|
80
|
-
default: false
|
|
81
|
-
},
|
|
82
|
-
fileName: {
|
|
83
|
-
type: String
|
|
84
|
-
},
|
|
85
|
-
uploadedBy: {
|
|
86
|
-
type: String
|
|
87
|
-
},
|
|
88
|
-
}, {
|
|
89
|
-
strict: true,
|
|
90
|
-
versionKey: false,
|
|
91
|
-
timestamps: true,
|
|
92
|
-
}
|
|
93
|
-
);
|
|
94
|
-
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
// Bank-statement transactions uploaded from the billing "Transactions" tab.
|
|
4
|
+
// Separate from the existing `transaction` collection, which holds payment /
|
|
5
|
+
// wallet (Razorpay) entries. Each row is one statement line; `status` drives
|
|
6
|
+
// the reconciliation buckets shown in the UI.
|
|
7
|
+
const bankTransactionSchema = new mongoose.Schema(
|
|
8
|
+
{
|
|
9
|
+
date: {
|
|
10
|
+
type: Date
|
|
11
|
+
},
|
|
12
|
+
valueDate: {
|
|
13
|
+
type: Date
|
|
14
|
+
},
|
|
15
|
+
narration: {
|
|
16
|
+
type: String
|
|
17
|
+
},
|
|
18
|
+
refNo: {
|
|
19
|
+
type: String,
|
|
20
|
+
index: true
|
|
21
|
+
},
|
|
22
|
+
withdrawalAmt: {
|
|
23
|
+
type: Number,
|
|
24
|
+
default: 0
|
|
25
|
+
},
|
|
26
|
+
depositAmt: {
|
|
27
|
+
type: Number,
|
|
28
|
+
default: 0
|
|
29
|
+
},
|
|
30
|
+
// Signed convenience amount: deposit - withdrawal.
|
|
31
|
+
amount: {
|
|
32
|
+
type: Number
|
|
33
|
+
},
|
|
34
|
+
// Counterparty name extracted from the narration at upload time.
|
|
35
|
+
payer: {
|
|
36
|
+
type: String
|
|
37
|
+
},
|
|
38
|
+
source: {
|
|
39
|
+
type: String,
|
|
40
|
+
enum: [ 'bank', 'va', 'gateway', 'manual' ],
|
|
41
|
+
default: 'bank',
|
|
42
|
+
},
|
|
43
|
+
status: {
|
|
44
|
+
type: String,
|
|
45
|
+
enum: [ 'reconciled', 'needs_review', 'unmatched', 'excluded' ],
|
|
46
|
+
default: 'unmatched',
|
|
47
|
+
},
|
|
48
|
+
// Filled by the (future) classification pass / manual resolve.
|
|
49
|
+
identifiedClientId: {
|
|
50
|
+
type: String
|
|
51
|
+
},
|
|
52
|
+
identifiedClientName: {
|
|
53
|
+
type: String
|
|
54
|
+
},
|
|
55
|
+
invoice: {
|
|
56
|
+
type: String
|
|
57
|
+
},
|
|
58
|
+
// Mongo _id of the matched invoice — lets the UI open the invoice
|
|
59
|
+
// preview directly from a reconciled transaction.
|
|
60
|
+
invoiceId: {
|
|
61
|
+
type: String
|
|
62
|
+
},
|
|
63
|
+
// When one payment settles MULTIPLE invoices, the exact amount applied
|
|
64
|
+
// to each is recorded here so an Edit/re-reconcile can reverse precisely
|
|
65
|
+
// what was applied. (Single-invoice reconciles also populate this.)
|
|
66
|
+
appliedInvoices: [
|
|
67
|
+
{
|
|
68
|
+
invoiceId: { type: String },
|
|
69
|
+
invoice: { type: String },
|
|
70
|
+
amount: { type: Number },
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
resultNote: {
|
|
74
|
+
type: String
|
|
75
|
+
},
|
|
76
|
+
// Set when the team chose "Reach out to customer" in the resolve
|
|
77
|
+
// popup — the row stays in needs_review with a "Reaching out" badge.
|
|
78
|
+
contacted: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
default: false
|
|
81
|
+
},
|
|
82
|
+
fileName: {
|
|
83
|
+
type: String
|
|
84
|
+
},
|
|
85
|
+
uploadedBy: {
|
|
86
|
+
type: String
|
|
87
|
+
},
|
|
88
|
+
}, {
|
|
89
|
+
strict: true,
|
|
90
|
+
versionKey: false,
|
|
91
|
+
timestamps: true,
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
|
|
95
95
|
export default mongoose.model('banktransaction', bankTransactionSchema);
|
package/schema/billing.model.js
CHANGED
|
@@ -1,136 +1,136 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
|
|
3
|
-
const billingSchema = new mongoose.Schema(
|
|
4
|
-
{
|
|
5
|
-
clientId: {
|
|
6
|
-
type: String,
|
|
7
|
-
required: true,
|
|
8
|
-
},
|
|
9
|
-
groupName: {
|
|
10
|
-
type: String,
|
|
11
|
-
default:'Default Group'
|
|
12
|
-
},
|
|
13
|
-
groupTag: {
|
|
14
|
-
type: String,
|
|
15
|
-
enum: ['store','gst'],
|
|
16
|
-
default: 'store'
|
|
17
|
-
},
|
|
18
|
-
registeredCompanyName: {
|
|
19
|
-
type: String,
|
|
20
|
-
},
|
|
21
|
-
gst: {
|
|
22
|
-
type: String,
|
|
23
|
-
},
|
|
24
|
-
addressLineOne: {
|
|
25
|
-
type: String,
|
|
26
|
-
},
|
|
27
|
-
addressLineTwo: {
|
|
28
|
-
type: String,
|
|
29
|
-
},
|
|
30
|
-
city: {
|
|
31
|
-
type: String,
|
|
32
|
-
},
|
|
33
|
-
state: {
|
|
34
|
-
type: String,
|
|
35
|
-
},
|
|
36
|
-
country: {
|
|
37
|
-
type: String,
|
|
38
|
-
},
|
|
39
|
-
pinCode: {
|
|
40
|
-
type: String,
|
|
41
|
-
},
|
|
42
|
-
placeOfSupply: {
|
|
43
|
-
type: String,
|
|
44
|
-
},
|
|
45
|
-
po: {
|
|
46
|
-
type: String,
|
|
47
|
-
},
|
|
48
|
-
stores: {
|
|
49
|
-
type: Array,
|
|
50
|
-
},
|
|
51
|
-
proRata: {
|
|
52
|
-
type: String,
|
|
53
|
-
// 'prorate' = bill for actual working days.
|
|
54
|
-
// 'flat' = bill for the full month regardless of working days.
|
|
55
|
-
// Note: legacy values 'before15' / 'after15' were migrated out via
|
|
56
|
-
// scripts/migrate-billing-prorata-pricing.js. Don't reintroduce them.
|
|
57
|
-
enum: ['prorate','flat'],
|
|
58
|
-
default: 'prorate'
|
|
59
|
-
},
|
|
60
|
-
paymentCategory: {
|
|
61
|
-
type: String,
|
|
62
|
-
enum: ['pre','post'],
|
|
63
|
-
default: 'post'
|
|
64
|
-
},
|
|
65
|
-
currency: {
|
|
66
|
-
type: String,
|
|
67
|
-
enum: ['dollar','inr','singaporedollar','euro','aed'],
|
|
68
|
-
},
|
|
69
|
-
// Drives invoice-generation tax behavior. 'domestic' runs the
|
|
70
|
-
// existing GST/IGST/CGST/SGST logic. 'international' suppresses
|
|
71
|
-
// tax lines entirely (the tax array is left empty so totalAmount
|
|
72
|
-
// equals subtotal). Defaults to 'domestic' so existing records
|
|
73
|
-
// keep their current behavior on read.
|
|
74
|
-
taxCalculationType: {
|
|
75
|
-
type: String,
|
|
76
|
-
enum: ['domestic','international'],
|
|
77
|
-
default: 'domestic'
|
|
78
|
-
},
|
|
79
|
-
isInstallationOneTime: {
|
|
80
|
-
type: Boolean,
|
|
81
|
-
default: false
|
|
82
|
-
},
|
|
83
|
-
installationFee: {
|
|
84
|
-
type: Number,
|
|
85
|
-
},
|
|
86
|
-
paymentCycle: {
|
|
87
|
-
type: String,
|
|
88
|
-
enum: ['monthly','quarter', 'halfYearly', 'yearly'],
|
|
89
|
-
default: 'monthly'
|
|
90
|
-
},
|
|
91
|
-
paymentTerm: {
|
|
92
|
-
type: Number,
|
|
93
|
-
enum: [30, 45, 60, 90],
|
|
94
|
-
default: 30
|
|
95
|
-
},
|
|
96
|
-
generateInvoiceTo: {
|
|
97
|
-
type: Array,
|
|
98
|
-
},
|
|
99
|
-
attachAnnexure: {
|
|
100
|
-
type: Boolean,
|
|
101
|
-
default:false
|
|
102
|
-
},
|
|
103
|
-
isPrimary: {
|
|
104
|
-
type: Boolean
|
|
105
|
-
},
|
|
106
|
-
advanceInvoice: {
|
|
107
|
-
type: Boolean,
|
|
108
|
-
default: false
|
|
109
|
-
},
|
|
110
|
-
// How far ahead an advance invoice is generated when advanceInvoice is on.
|
|
111
|
-
advancePeriod: {
|
|
112
|
-
type: String,
|
|
113
|
-
enum: [ 'monthly', 'quarterly', 'halfyearly', 'yearly' ],
|
|
114
|
-
default: 'monthly'
|
|
115
|
-
},
|
|
116
|
-
products: [
|
|
117
|
-
{
|
|
118
|
-
productName: {
|
|
119
|
-
type: String,
|
|
120
|
-
},
|
|
121
|
-
billingMethod: {
|
|
122
|
-
type: String,
|
|
123
|
-
enum: ['eachStore', 'overallStore'],
|
|
124
|
-
default: 'overallStore'
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
]
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
strict: true,
|
|
131
|
-
versionKey: false,
|
|
132
|
-
timestamps: true,
|
|
133
|
-
},
|
|
134
|
-
);
|
|
135
|
-
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const billingSchema = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
clientId: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: true,
|
|
8
|
+
},
|
|
9
|
+
groupName: {
|
|
10
|
+
type: String,
|
|
11
|
+
default:'Default Group'
|
|
12
|
+
},
|
|
13
|
+
groupTag: {
|
|
14
|
+
type: String,
|
|
15
|
+
enum: ['store','gst'],
|
|
16
|
+
default: 'store'
|
|
17
|
+
},
|
|
18
|
+
registeredCompanyName: {
|
|
19
|
+
type: String,
|
|
20
|
+
},
|
|
21
|
+
gst: {
|
|
22
|
+
type: String,
|
|
23
|
+
},
|
|
24
|
+
addressLineOne: {
|
|
25
|
+
type: String,
|
|
26
|
+
},
|
|
27
|
+
addressLineTwo: {
|
|
28
|
+
type: String,
|
|
29
|
+
},
|
|
30
|
+
city: {
|
|
31
|
+
type: String,
|
|
32
|
+
},
|
|
33
|
+
state: {
|
|
34
|
+
type: String,
|
|
35
|
+
},
|
|
36
|
+
country: {
|
|
37
|
+
type: String,
|
|
38
|
+
},
|
|
39
|
+
pinCode: {
|
|
40
|
+
type: String,
|
|
41
|
+
},
|
|
42
|
+
placeOfSupply: {
|
|
43
|
+
type: String,
|
|
44
|
+
},
|
|
45
|
+
po: {
|
|
46
|
+
type: String,
|
|
47
|
+
},
|
|
48
|
+
stores: {
|
|
49
|
+
type: Array,
|
|
50
|
+
},
|
|
51
|
+
proRata: {
|
|
52
|
+
type: String,
|
|
53
|
+
// 'prorate' = bill for actual working days.
|
|
54
|
+
// 'flat' = bill for the full month regardless of working days.
|
|
55
|
+
// Note: legacy values 'before15' / 'after15' were migrated out via
|
|
56
|
+
// scripts/migrate-billing-prorata-pricing.js. Don't reintroduce them.
|
|
57
|
+
enum: ['prorate','flat'],
|
|
58
|
+
default: 'prorate'
|
|
59
|
+
},
|
|
60
|
+
paymentCategory: {
|
|
61
|
+
type: String,
|
|
62
|
+
enum: ['pre','post'],
|
|
63
|
+
default: 'post'
|
|
64
|
+
},
|
|
65
|
+
currency: {
|
|
66
|
+
type: String,
|
|
67
|
+
enum: ['dollar','inr','singaporedollar','euro','aed'],
|
|
68
|
+
},
|
|
69
|
+
// Drives invoice-generation tax behavior. 'domestic' runs the
|
|
70
|
+
// existing GST/IGST/CGST/SGST logic. 'international' suppresses
|
|
71
|
+
// tax lines entirely (the tax array is left empty so totalAmount
|
|
72
|
+
// equals subtotal). Defaults to 'domestic' so existing records
|
|
73
|
+
// keep their current behavior on read.
|
|
74
|
+
taxCalculationType: {
|
|
75
|
+
type: String,
|
|
76
|
+
enum: ['domestic','international'],
|
|
77
|
+
default: 'domestic'
|
|
78
|
+
},
|
|
79
|
+
isInstallationOneTime: {
|
|
80
|
+
type: Boolean,
|
|
81
|
+
default: false
|
|
82
|
+
},
|
|
83
|
+
installationFee: {
|
|
84
|
+
type: Number,
|
|
85
|
+
},
|
|
86
|
+
paymentCycle: {
|
|
87
|
+
type: String,
|
|
88
|
+
enum: ['monthly','quarter', 'halfYearly', 'yearly'],
|
|
89
|
+
default: 'monthly'
|
|
90
|
+
},
|
|
91
|
+
paymentTerm: {
|
|
92
|
+
type: Number,
|
|
93
|
+
enum: [30, 45, 60, 90],
|
|
94
|
+
default: 30
|
|
95
|
+
},
|
|
96
|
+
generateInvoiceTo: {
|
|
97
|
+
type: Array,
|
|
98
|
+
},
|
|
99
|
+
attachAnnexure: {
|
|
100
|
+
type: Boolean,
|
|
101
|
+
default:false
|
|
102
|
+
},
|
|
103
|
+
isPrimary: {
|
|
104
|
+
type: Boolean
|
|
105
|
+
},
|
|
106
|
+
advanceInvoice: {
|
|
107
|
+
type: Boolean,
|
|
108
|
+
default: false
|
|
109
|
+
},
|
|
110
|
+
// How far ahead an advance invoice is generated when advanceInvoice is on.
|
|
111
|
+
advancePeriod: {
|
|
112
|
+
type: String,
|
|
113
|
+
enum: [ 'monthly', 'quarterly', 'halfyearly', 'yearly' ],
|
|
114
|
+
default: 'monthly'
|
|
115
|
+
},
|
|
116
|
+
products: [
|
|
117
|
+
{
|
|
118
|
+
productName: {
|
|
119
|
+
type: String,
|
|
120
|
+
},
|
|
121
|
+
billingMethod: {
|
|
122
|
+
type: String,
|
|
123
|
+
enum: ['eachStore', 'overallStore'],
|
|
124
|
+
default: 'overallStore'
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
strict: true,
|
|
131
|
+
versionKey: false,
|
|
132
|
+
timestamps: true,
|
|
133
|
+
},
|
|
134
|
+
);
|
|
135
|
+
|
|
136
136
|
export default mongoose.model( 'billing', billingSchema);
|
package/schema/camera.model.js
CHANGED
|
@@ -142,37 +142,37 @@ const collection =new mongoose.Schema(
|
|
|
142
142
|
height: {
|
|
143
143
|
type: Number,
|
|
144
144
|
},
|
|
145
|
-
// Per-stream resolution variants. Each entry is one selectable stream
|
|
146
|
-
// profile; exactly one should carry default:true (the one whose RTSP /
|
|
147
|
-
// thumbnailImage / width / height mirror the top-level fields above).
|
|
148
|
-
// subType matches the top-level subType (Number) so the two stay comparable.
|
|
149
|
-
resolutions: [
|
|
150
|
-
{
|
|
151
|
-
_id: false,
|
|
152
|
-
RTSP: {
|
|
153
|
-
type: String,
|
|
154
|
-
trim: true,
|
|
155
|
-
},
|
|
156
|
-
thumbnailImage: {
|
|
157
|
-
type: String,
|
|
158
|
-
trim: true,
|
|
159
|
-
},
|
|
160
|
-
subType: {
|
|
161
|
-
type: Number,
|
|
162
|
-
trim: true,
|
|
163
|
-
},
|
|
164
|
-
width: {
|
|
165
|
-
type: Number,
|
|
166
|
-
},
|
|
167
|
-
height: {
|
|
168
|
-
type: Number,
|
|
169
|
-
},
|
|
170
|
-
default: {
|
|
171
|
-
type: Boolean,
|
|
172
|
-
default: false,
|
|
173
|
-
},
|
|
174
|
-
},
|
|
175
|
-
],
|
|
145
|
+
// Per-stream resolution variants. Each entry is one selectable stream
|
|
146
|
+
// profile; exactly one should carry default:true (the one whose RTSP /
|
|
147
|
+
// thumbnailImage / width / height mirror the top-level fields above).
|
|
148
|
+
// subType matches the top-level subType (Number) so the two stay comparable.
|
|
149
|
+
resolutions: [
|
|
150
|
+
{
|
|
151
|
+
_id: false,
|
|
152
|
+
RTSP: {
|
|
153
|
+
type: String,
|
|
154
|
+
trim: true,
|
|
155
|
+
},
|
|
156
|
+
thumbnailImage: {
|
|
157
|
+
type: String,
|
|
158
|
+
trim: true,
|
|
159
|
+
},
|
|
160
|
+
subType: {
|
|
161
|
+
type: Number,
|
|
162
|
+
trim: true,
|
|
163
|
+
},
|
|
164
|
+
width: {
|
|
165
|
+
type: Number,
|
|
166
|
+
},
|
|
167
|
+
height: {
|
|
168
|
+
type: Number,
|
|
169
|
+
},
|
|
170
|
+
default: {
|
|
171
|
+
type: Boolean,
|
|
172
|
+
default: false,
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
176
|
qrCode: {
|
|
177
177
|
type: String,
|
|
178
178
|
},
|
package/schema/client.model.js
CHANGED
|
@@ -915,5 +915,10 @@ const client = new mongoose.Schema(
|
|
|
915
915
|
},
|
|
916
916
|
);
|
|
917
917
|
|
|
918
|
+
client.index( { clientId: 1 } );
|
|
919
|
+
client.index( { clientName: 1 } );
|
|
920
|
+
client.index( { clientId: 1, status:1 } );
|
|
921
|
+
client.index( { clientName: 1, status:1 } );
|
|
922
|
+
client.index( { tangoId: 1 } );
|
|
918
923
|
|
|
919
924
|
export default mongoose.model('client', client);
|
|
@@ -35,5 +35,8 @@ const clientRequestSchema = new mongoose.Schema(
|
|
|
35
35
|
timestamps: true,
|
|
36
36
|
},
|
|
37
37
|
);
|
|
38
|
-
|
|
38
|
+
|
|
39
|
+
clientRequestSchema.index( { clientId: 1, status: 1, category: 1 } );
|
|
40
|
+
clientRequestSchema.index( { status: 1 } );
|
|
41
|
+
|
|
39
42
|
export default mongoose.model('clientRequest', clientRequestSchema)
|