tango-api-schema 3.0.2 → 3.0.4
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 +197 -197
- package/package.json +25 -26
- package/schema/aiTicketConfig.js +42 -42
- package/schema/appVersion.js +39 -39
- package/schema/applicationDefault.model.js +24 -24
- package/schema/assignAudit.model.js +55 -55
- package/schema/auditConfig.model.js +41 -41
- package/schema/auditLogs.model.js +77 -77
- package/schema/auditStoreData.model.js +56 -56
- package/schema/auditUserWallet.model.js +98 -98
- package/schema/auditUsers.model.js +53 -53
- package/schema/authentication.model.js +27 -27
- package/schema/basePricing.model.js +28 -28
- package/schema/billing.model.js +99 -99
- package/schema/binaryAudit.model.js +84 -84
- package/schema/camera.model.js +211 -211
- package/schema/checklistassignconfig.js +90 -90
- package/schema/checklistconfig.js +256 -256
- package/schema/checklistlog.js +113 -113
- package/schema/checklistquestionconfig.js +153 -153
- package/schema/client.model.js +675 -675
- package/schema/clientRequest.model.js +38 -38
- package/schema/cluster.model.js +70 -70
- package/schema/controlCenterTemplateList.model.js +39 -39
- package/schema/countryCodes.model.js +26 -26
- package/schema/countryCurrency.model.js +17 -17
- package/schema/dailyPricing.model.js +86 -86
- package/schema/dataMismatchDraft.model.js +22 -22
- package/schema/domain.js +18 -18
- package/schema/download.js +124 -124
- package/schema/edgeAppVersion.model.js +33 -33
- package/schema/edgeappAuth.model.js +30 -30
- package/schema/emailers.model.js +45 -45
- package/schema/empDetectionOutput.model.js +67 -67
- package/schema/externalParameter.model.js +241 -241
- package/schema/eyetest.model.js +18 -18
- package/schema/fitting.model.js +52 -52
- package/schema/fixtureConfig.model.js +202 -206
- package/schema/fixtureLibrary.model.js +164 -164
- package/schema/fixtureShelf.model.js +72 -72
- package/schema/group.model.js +34 -34
- package/schema/hotjar.model.js +11 -11
- package/schema/infraReason.model.js +44 -44
- package/schema/internalAuth.model.js +35 -35
- package/schema/invoice.model.js +104 -104
- package/schema/ipLogs.model.js +37 -37
- package/schema/lead.model.js +76 -76
- package/schema/lenskartEmployeeMapping.model.js +63 -63
- package/schema/liveConnection.model.js +54 -54
- package/schema/locusOrder.model.js +154 -154
- package/schema/locusOrderUser.model.js +14 -14
- package/schema/loginAttempt.model.js +26 -26
- package/schema/lowcountReason.model.js +44 -44
- package/schema/mailOnlyuser.model.js +42 -42
- package/schema/matLog.model.js +26 -26
- package/schema/nobBilling.model.js +41 -41
- package/schema/notification.model.js +33 -33
- package/schema/otp.model.js +25 -25
- package/schema/paymentAccount.model.js +60 -60
- package/schema/planoCompliance.model.js +62 -62
- package/schema/planoCrestLog.model.js +17 -17
- package/schema/planoMapping.model.js +56 -56
- package/schema/planoProductCategoryDetails.model.js +33 -33
- package/schema/planoProductDetail.model.js +63 -63
- package/schema/planoQrConversionRequest.model.js +61 -61
- package/schema/planoStaticData.model.js +17 -17
- package/schema/planoTaskCompliance.model.js +244 -244
- package/schema/planoVmDetail.model.js +63 -63
- package/schema/planogram.model.js +66 -66
- package/schema/processedchecklist.js +249 -249
- package/schema/processedchecklistconfig.js +187 -187
- package/schema/processeddetection.js +85 -85
- package/schema/quality.model.js +57 -57
- package/schema/report.model.js +30 -30
- package/schema/revopConfig.model.js +19 -19
- package/schema/standaredRole.model.js +76 -76
- package/schema/store.model.js +381 -381
- package/schema/storeAudit.model.js +62 -62
- package/schema/storeEmpDetection.model.js +62 -62
- package/schema/storeFixture.model.js +206 -206
- package/schema/storeLayout.model.js +66 -66
- package/schema/streaming.model.js +29 -29
- package/schema/suspiciousActivity.model.js +54 -54
- package/schema/tagging.model.js +42 -42
- package/schema/tangoTicket.model.js +210 -210
- package/schema/taskAssign.model.js +87 -87
- package/schema/taskConfig.model.js +118 -118
- package/schema/taskProcessed.model.js +248 -248
- package/schema/taskProcessedConfig.model.js +131 -131
- package/schema/taskQuestion.model.js +46 -46
- package/schema/teams.model.js +46 -46
- package/schema/transaction.model.js +54 -54
- package/schema/traxApprover.model.js +35 -35
- package/schema/traxAuditData.model.js +64 -64
- package/schema/user.model.js +139 -139
- package/schema/userAssignedStore.model.js +41 -41
- package/schema/userAudit.model.js +77 -77
- package/schema/userEmpDetection.model.js +83 -83
- package/schema/vmType.model.js +23 -23
- package/schema/workstation.model.js +75 -75
|
@@ -1,211 +1,211 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
|
|
3
|
-
const tangoTickets = new mongoose.Schema(
|
|
4
|
-
{
|
|
5
|
-
ticketId: {
|
|
6
|
-
type: String,
|
|
7
|
-
},
|
|
8
|
-
issueDate: {
|
|
9
|
-
type: Date
|
|
10
|
-
},
|
|
11
|
-
issueClosedDate: {
|
|
12
|
-
type: Date
|
|
13
|
-
},
|
|
14
|
-
issueType: {
|
|
15
|
-
type: String,
|
|
16
|
-
enum: ['infra', 'mat', 'highcount', 'lowcount', 'installation']
|
|
17
|
-
},
|
|
18
|
-
hibernation: {
|
|
19
|
-
type: Date
|
|
20
|
-
},
|
|
21
|
-
attachments: [
|
|
22
|
-
{
|
|
23
|
-
fileName: {
|
|
24
|
-
type: String
|
|
25
|
-
},
|
|
26
|
-
filePath: {
|
|
27
|
-
type: String
|
|
28
|
-
},
|
|
29
|
-
signedUrl: {
|
|
30
|
-
type: String
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
cameraList: [],
|
|
35
|
-
dataMismatch: {
|
|
36
|
-
actualCount: {
|
|
37
|
-
type: Number
|
|
38
|
-
},
|
|
39
|
-
expectedCount: {
|
|
40
|
-
type: Number
|
|
41
|
-
},
|
|
42
|
-
contactEmail: {
|
|
43
|
-
type: String
|
|
44
|
-
},
|
|
45
|
-
description: {
|
|
46
|
-
type: String
|
|
47
|
-
},
|
|
48
|
-
feature: {
|
|
49
|
-
type: String
|
|
50
|
-
},
|
|
51
|
-
attachmentPath: {
|
|
52
|
-
type: String
|
|
53
|
-
},
|
|
54
|
-
mappedCount: {
|
|
55
|
-
type: Number
|
|
56
|
-
},
|
|
57
|
-
zipFilePath: {
|
|
58
|
-
type: String
|
|
59
|
-
},
|
|
60
|
-
successPercentage: {
|
|
61
|
-
type: Number
|
|
62
|
-
},
|
|
63
|
-
showToClient:{
|
|
64
|
-
type: Boolean,
|
|
65
|
-
default: true
|
|
66
|
-
},
|
|
67
|
-
reportedFootfall:{
|
|
68
|
-
type: Number
|
|
69
|
-
},
|
|
70
|
-
processType: {
|
|
71
|
-
type: String
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
ticketDetails: {
|
|
75
|
-
matStatus:{
|
|
76
|
-
type: String,
|
|
77
|
-
default: 'Open',
|
|
78
|
-
},
|
|
79
|
-
issueIdentifiedDate: {
|
|
80
|
-
type: Date
|
|
81
|
-
},
|
|
82
|
-
issueIdentifiedBy: {
|
|
83
|
-
type: String,
|
|
84
|
-
enum: ["client", 'tango', "automated"]
|
|
85
|
-
},
|
|
86
|
-
addressingClient: {
|
|
87
|
-
type: mongoose.Types.ObjectId
|
|
88
|
-
},
|
|
89
|
-
addressingUser: {
|
|
90
|
-
type: mongoose.Types.ObjectId
|
|
91
|
-
},
|
|
92
|
-
assigntoUser: {
|
|
93
|
-
type: Boolean,
|
|
94
|
-
default: false,
|
|
95
|
-
},
|
|
96
|
-
filesCount: {
|
|
97
|
-
type: Number
|
|
98
|
-
},
|
|
99
|
-
installationStatus: {
|
|
100
|
-
type: String,
|
|
101
|
-
default: 'onboarded',
|
|
102
|
-
enum: ['onboarded', 'paired', 'installationfailed', 'live']
|
|
103
|
-
},
|
|
104
|
-
issueStatus: {
|
|
105
|
-
type: String,
|
|
106
|
-
default: 'notidentified',
|
|
107
|
-
enum: ['identified', 'notidentified']
|
|
108
|
-
},
|
|
109
|
-
refreshTicketStatus: {
|
|
110
|
-
type: String,
|
|
111
|
-
default: 'notidentified',
|
|
112
|
-
enum: ['identified', 'notidentified']
|
|
113
|
-
},
|
|
114
|
-
ticketRefreshTime: {
|
|
115
|
-
type: Date
|
|
116
|
-
},
|
|
117
|
-
ticketType: {
|
|
118
|
-
type: String,
|
|
119
|
-
enum: ['firsttimeticket', 'refreshticket'],
|
|
120
|
-
default: 'firsttimeticket'
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
ticketActivity: [
|
|
124
|
-
{
|
|
125
|
-
statusCheckAlertTime: {
|
|
126
|
-
type: Date,
|
|
127
|
-
},
|
|
128
|
-
statusCheckReply: {
|
|
129
|
-
type: String,
|
|
130
|
-
},
|
|
131
|
-
hibernationDays: {
|
|
132
|
-
type: String,
|
|
133
|
-
},
|
|
134
|
-
actionType: {
|
|
135
|
-
type: String
|
|
136
|
-
},
|
|
137
|
-
IdentifiedBy: {
|
|
138
|
-
type: String,
|
|
139
|
-
},
|
|
140
|
-
timeStamp: {
|
|
141
|
-
type: Date,
|
|
142
|
-
default: new Date()
|
|
143
|
-
},
|
|
144
|
-
actionBy: {
|
|
145
|
-
type: String
|
|
146
|
-
},
|
|
147
|
-
description: {
|
|
148
|
-
type: String
|
|
149
|
-
},
|
|
150
|
-
attachments: {
|
|
151
|
-
type: Array
|
|
152
|
-
},
|
|
153
|
-
actionId: {
|
|
154
|
-
type: mongoose.Types.ObjectId
|
|
155
|
-
},
|
|
156
|
-
comment: {
|
|
157
|
-
type: String
|
|
158
|
-
},
|
|
159
|
-
reasons: [
|
|
160
|
-
{
|
|
161
|
-
primaryIssue: {
|
|
162
|
-
type: String
|
|
163
|
-
},
|
|
164
|
-
secondaryIssue: [
|
|
165
|
-
{
|
|
166
|
-
name: {
|
|
167
|
-
type: String
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
]
|
|
171
|
-
}]
|
|
172
|
-
}
|
|
173
|
-
],
|
|
174
|
-
basicDetails: {
|
|
175
|
-
storeId: {
|
|
176
|
-
type: String
|
|
177
|
-
},
|
|
178
|
-
storeName: {
|
|
179
|
-
type: String,
|
|
180
|
-
},
|
|
181
|
-
clientId: {
|
|
182
|
-
type: String,
|
|
183
|
-
trim: true,
|
|
184
|
-
},
|
|
185
|
-
clientName: {
|
|
186
|
-
type: String,
|
|
187
|
-
trim: true,
|
|
188
|
-
},
|
|
189
|
-
address: {
|
|
190
|
-
type: String,
|
|
191
|
-
trim: true,
|
|
192
|
-
},
|
|
193
|
-
timezone: {
|
|
194
|
-
type: String,
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
status: {
|
|
198
|
-
type: String,
|
|
199
|
-
enum: ['open', 'inprogress', 'closed'],
|
|
200
|
-
default: 'open',
|
|
201
|
-
},
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
strict: true,
|
|
205
|
-
versionKey: false,
|
|
206
|
-
timestamps: true,
|
|
207
|
-
},
|
|
208
|
-
);
|
|
209
|
-
|
|
210
|
-
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const tangoTickets = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
ticketId: {
|
|
6
|
+
type: String,
|
|
7
|
+
},
|
|
8
|
+
issueDate: {
|
|
9
|
+
type: Date
|
|
10
|
+
},
|
|
11
|
+
issueClosedDate: {
|
|
12
|
+
type: Date
|
|
13
|
+
},
|
|
14
|
+
issueType: {
|
|
15
|
+
type: String,
|
|
16
|
+
enum: ['infra', 'mat', 'highcount', 'lowcount', 'installation']
|
|
17
|
+
},
|
|
18
|
+
hibernation: {
|
|
19
|
+
type: Date
|
|
20
|
+
},
|
|
21
|
+
attachments: [
|
|
22
|
+
{
|
|
23
|
+
fileName: {
|
|
24
|
+
type: String
|
|
25
|
+
},
|
|
26
|
+
filePath: {
|
|
27
|
+
type: String
|
|
28
|
+
},
|
|
29
|
+
signedUrl: {
|
|
30
|
+
type: String
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
cameraList: [],
|
|
35
|
+
dataMismatch: {
|
|
36
|
+
actualCount: {
|
|
37
|
+
type: Number
|
|
38
|
+
},
|
|
39
|
+
expectedCount: {
|
|
40
|
+
type: Number
|
|
41
|
+
},
|
|
42
|
+
contactEmail: {
|
|
43
|
+
type: String
|
|
44
|
+
},
|
|
45
|
+
description: {
|
|
46
|
+
type: String
|
|
47
|
+
},
|
|
48
|
+
feature: {
|
|
49
|
+
type: String
|
|
50
|
+
},
|
|
51
|
+
attachmentPath: {
|
|
52
|
+
type: String
|
|
53
|
+
},
|
|
54
|
+
mappedCount: {
|
|
55
|
+
type: Number
|
|
56
|
+
},
|
|
57
|
+
zipFilePath: {
|
|
58
|
+
type: String
|
|
59
|
+
},
|
|
60
|
+
successPercentage: {
|
|
61
|
+
type: Number
|
|
62
|
+
},
|
|
63
|
+
showToClient:{
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: true
|
|
66
|
+
},
|
|
67
|
+
reportedFootfall:{
|
|
68
|
+
type: Number
|
|
69
|
+
},
|
|
70
|
+
processType: {
|
|
71
|
+
type: String
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
ticketDetails: {
|
|
75
|
+
matStatus:{
|
|
76
|
+
type: String,
|
|
77
|
+
default: 'Open',
|
|
78
|
+
},
|
|
79
|
+
issueIdentifiedDate: {
|
|
80
|
+
type: Date
|
|
81
|
+
},
|
|
82
|
+
issueIdentifiedBy: {
|
|
83
|
+
type: String,
|
|
84
|
+
enum: ["client", 'tango', "automated"]
|
|
85
|
+
},
|
|
86
|
+
addressingClient: {
|
|
87
|
+
type: mongoose.Types.ObjectId
|
|
88
|
+
},
|
|
89
|
+
addressingUser: {
|
|
90
|
+
type: mongoose.Types.ObjectId
|
|
91
|
+
},
|
|
92
|
+
assigntoUser: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
default: false,
|
|
95
|
+
},
|
|
96
|
+
filesCount: {
|
|
97
|
+
type: Number
|
|
98
|
+
},
|
|
99
|
+
installationStatus: {
|
|
100
|
+
type: String,
|
|
101
|
+
default: 'onboarded',
|
|
102
|
+
enum: ['onboarded', 'paired', 'installationfailed', 'live']
|
|
103
|
+
},
|
|
104
|
+
issueStatus: {
|
|
105
|
+
type: String,
|
|
106
|
+
default: 'notidentified',
|
|
107
|
+
enum: ['identified', 'notidentified']
|
|
108
|
+
},
|
|
109
|
+
refreshTicketStatus: {
|
|
110
|
+
type: String,
|
|
111
|
+
default: 'notidentified',
|
|
112
|
+
enum: ['identified', 'notidentified']
|
|
113
|
+
},
|
|
114
|
+
ticketRefreshTime: {
|
|
115
|
+
type: Date
|
|
116
|
+
},
|
|
117
|
+
ticketType: {
|
|
118
|
+
type: String,
|
|
119
|
+
enum: ['firsttimeticket', 'refreshticket'],
|
|
120
|
+
default: 'firsttimeticket'
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
ticketActivity: [
|
|
124
|
+
{
|
|
125
|
+
statusCheckAlertTime: {
|
|
126
|
+
type: Date,
|
|
127
|
+
},
|
|
128
|
+
statusCheckReply: {
|
|
129
|
+
type: String,
|
|
130
|
+
},
|
|
131
|
+
hibernationDays: {
|
|
132
|
+
type: String,
|
|
133
|
+
},
|
|
134
|
+
actionType: {
|
|
135
|
+
type: String
|
|
136
|
+
},
|
|
137
|
+
IdentifiedBy: {
|
|
138
|
+
type: String,
|
|
139
|
+
},
|
|
140
|
+
timeStamp: {
|
|
141
|
+
type: Date,
|
|
142
|
+
default: new Date()
|
|
143
|
+
},
|
|
144
|
+
actionBy: {
|
|
145
|
+
type: String
|
|
146
|
+
},
|
|
147
|
+
description: {
|
|
148
|
+
type: String
|
|
149
|
+
},
|
|
150
|
+
attachments: {
|
|
151
|
+
type: Array
|
|
152
|
+
},
|
|
153
|
+
actionId: {
|
|
154
|
+
type: mongoose.Types.ObjectId
|
|
155
|
+
},
|
|
156
|
+
comment: {
|
|
157
|
+
type: String
|
|
158
|
+
},
|
|
159
|
+
reasons: [
|
|
160
|
+
{
|
|
161
|
+
primaryIssue: {
|
|
162
|
+
type: String
|
|
163
|
+
},
|
|
164
|
+
secondaryIssue: [
|
|
165
|
+
{
|
|
166
|
+
name: {
|
|
167
|
+
type: String
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
}]
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
basicDetails: {
|
|
175
|
+
storeId: {
|
|
176
|
+
type: String
|
|
177
|
+
},
|
|
178
|
+
storeName: {
|
|
179
|
+
type: String,
|
|
180
|
+
},
|
|
181
|
+
clientId: {
|
|
182
|
+
type: String,
|
|
183
|
+
trim: true,
|
|
184
|
+
},
|
|
185
|
+
clientName: {
|
|
186
|
+
type: String,
|
|
187
|
+
trim: true,
|
|
188
|
+
},
|
|
189
|
+
address: {
|
|
190
|
+
type: String,
|
|
191
|
+
trim: true,
|
|
192
|
+
},
|
|
193
|
+
timezone: {
|
|
194
|
+
type: String,
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
status: {
|
|
198
|
+
type: String,
|
|
199
|
+
enum: ['open', 'inprogress', 'closed'],
|
|
200
|
+
default: 'open',
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
strict: true,
|
|
205
|
+
versionKey: false,
|
|
206
|
+
timestamps: true,
|
|
207
|
+
},
|
|
208
|
+
);
|
|
209
|
+
|
|
210
|
+
|
|
211
211
|
export default mongoose.model('tangoTicket', tangoTickets, 'tangoTicket');
|
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
|
|
3
|
-
const taskassignconfigSchema = new mongoose.Schema({
|
|
4
|
-
store_id: {
|
|
5
|
-
type: String,
|
|
6
|
-
default:''
|
|
7
|
-
},
|
|
8
|
-
storeName: {
|
|
9
|
-
type: String,
|
|
10
|
-
default:''
|
|
11
|
-
},
|
|
12
|
-
userId: {
|
|
13
|
-
type: mongoose.SchemaTypes.ObjectId,
|
|
14
|
-
},
|
|
15
|
-
userEmail: {
|
|
16
|
-
type: String,
|
|
17
|
-
},
|
|
18
|
-
userName: {
|
|
19
|
-
type: String,
|
|
20
|
-
},
|
|
21
|
-
userPhone:{
|
|
22
|
-
type:String,
|
|
23
|
-
},
|
|
24
|
-
city:{
|
|
25
|
-
type:String
|
|
26
|
-
},
|
|
27
|
-
country:{
|
|
28
|
-
type:String
|
|
29
|
-
},
|
|
30
|
-
checkFlag: {
|
|
31
|
-
type: Boolean,
|
|
32
|
-
default:true
|
|
33
|
-
},
|
|
34
|
-
checkListId: {
|
|
35
|
-
type: mongoose.SchemaTypes.ObjectId,
|
|
36
|
-
required:true
|
|
37
|
-
},
|
|
38
|
-
checkListName: {
|
|
39
|
-
type: String,
|
|
40
|
-
required:true
|
|
41
|
-
},
|
|
42
|
-
client_id: {
|
|
43
|
-
type: String,
|
|
44
|
-
required:true
|
|
45
|
-
},
|
|
46
|
-
createdAt: {
|
|
47
|
-
type: Date,
|
|
48
|
-
default: Date.now
|
|
49
|
-
},
|
|
50
|
-
updatedAt: {
|
|
51
|
-
type: Date,
|
|
52
|
-
default: Date.now
|
|
53
|
-
},
|
|
54
|
-
isdeleted: {
|
|
55
|
-
type: Boolean,
|
|
56
|
-
default: false
|
|
57
|
-
},
|
|
58
|
-
reinitiate:{
|
|
59
|
-
type:Boolean,
|
|
60
|
-
default:false
|
|
61
|
-
},
|
|
62
|
-
sendNotification:{
|
|
63
|
-
type:Boolean,
|
|
64
|
-
default:false,
|
|
65
|
-
},
|
|
66
|
-
clusterName:{
|
|
67
|
-
type:String,
|
|
68
|
-
},
|
|
69
|
-
teamName:{
|
|
70
|
-
type:String
|
|
71
|
-
},
|
|
72
|
-
assignId:{
|
|
73
|
-
type:mongoose.Types.ObjectId
|
|
74
|
-
},
|
|
75
|
-
coverage:{
|
|
76
|
-
type: String,
|
|
77
|
-
default: 'store',
|
|
78
|
-
enum: ["store", "user"]
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
strict: true,
|
|
83
|
-
versionKey: false,
|
|
84
|
-
timestamps: true,
|
|
85
|
-
},
|
|
86
|
-
);
|
|
87
|
-
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const taskassignconfigSchema = new mongoose.Schema({
|
|
4
|
+
store_id: {
|
|
5
|
+
type: String,
|
|
6
|
+
default:''
|
|
7
|
+
},
|
|
8
|
+
storeName: {
|
|
9
|
+
type: String,
|
|
10
|
+
default:''
|
|
11
|
+
},
|
|
12
|
+
userId: {
|
|
13
|
+
type: mongoose.SchemaTypes.ObjectId,
|
|
14
|
+
},
|
|
15
|
+
userEmail: {
|
|
16
|
+
type: String,
|
|
17
|
+
},
|
|
18
|
+
userName: {
|
|
19
|
+
type: String,
|
|
20
|
+
},
|
|
21
|
+
userPhone:{
|
|
22
|
+
type:String,
|
|
23
|
+
},
|
|
24
|
+
city:{
|
|
25
|
+
type:String
|
|
26
|
+
},
|
|
27
|
+
country:{
|
|
28
|
+
type:String
|
|
29
|
+
},
|
|
30
|
+
checkFlag: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default:true
|
|
33
|
+
},
|
|
34
|
+
checkListId: {
|
|
35
|
+
type: mongoose.SchemaTypes.ObjectId,
|
|
36
|
+
required:true
|
|
37
|
+
},
|
|
38
|
+
checkListName: {
|
|
39
|
+
type: String,
|
|
40
|
+
required:true
|
|
41
|
+
},
|
|
42
|
+
client_id: {
|
|
43
|
+
type: String,
|
|
44
|
+
required:true
|
|
45
|
+
},
|
|
46
|
+
createdAt: {
|
|
47
|
+
type: Date,
|
|
48
|
+
default: Date.now
|
|
49
|
+
},
|
|
50
|
+
updatedAt: {
|
|
51
|
+
type: Date,
|
|
52
|
+
default: Date.now
|
|
53
|
+
},
|
|
54
|
+
isdeleted: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: false
|
|
57
|
+
},
|
|
58
|
+
reinitiate:{
|
|
59
|
+
type:Boolean,
|
|
60
|
+
default:false
|
|
61
|
+
},
|
|
62
|
+
sendNotification:{
|
|
63
|
+
type:Boolean,
|
|
64
|
+
default:false,
|
|
65
|
+
},
|
|
66
|
+
clusterName:{
|
|
67
|
+
type:String,
|
|
68
|
+
},
|
|
69
|
+
teamName:{
|
|
70
|
+
type:String
|
|
71
|
+
},
|
|
72
|
+
assignId:{
|
|
73
|
+
type:mongoose.Types.ObjectId
|
|
74
|
+
},
|
|
75
|
+
coverage:{
|
|
76
|
+
type: String,
|
|
77
|
+
default: 'store',
|
|
78
|
+
enum: ["store", "user"]
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
strict: true,
|
|
83
|
+
versionKey: false,
|
|
84
|
+
timestamps: true,
|
|
85
|
+
},
|
|
86
|
+
);
|
|
87
|
+
|
|
88
88
|
export default mongoose.model( 'taskAssignConfig', taskassignconfigSchema);
|