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,241 +1,241 @@
|
|
|
1
|
-
import mongoose from "mongoose";
|
|
2
|
-
|
|
3
|
-
const externalParameter = new mongoose.Schema(
|
|
4
|
-
{
|
|
5
|
-
storeId: {
|
|
6
|
-
type: String,
|
|
7
|
-
trim: true,
|
|
8
|
-
required: true,
|
|
9
|
-
},
|
|
10
|
-
productName: {
|
|
11
|
-
type: String,
|
|
12
|
-
required: true
|
|
13
|
-
},
|
|
14
|
-
zoneName: {
|
|
15
|
-
type: String,
|
|
16
|
-
required: true
|
|
17
|
-
},
|
|
18
|
-
clientId: {
|
|
19
|
-
type: String,
|
|
20
|
-
trim: true,
|
|
21
|
-
},
|
|
22
|
-
isAlwaysAudit: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: false
|
|
25
|
-
},
|
|
26
|
-
bcTrendOldPipelineWkday: {
|
|
27
|
-
type: Number,
|
|
28
|
-
default: 0
|
|
29
|
-
},
|
|
30
|
-
bcTrendOldPipelineWkend: {
|
|
31
|
-
type: Number,
|
|
32
|
-
default: 0
|
|
33
|
-
},
|
|
34
|
-
isManualEdit: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default: false
|
|
37
|
-
},
|
|
38
|
-
empThres: {
|
|
39
|
-
type: Number,
|
|
40
|
-
default: 0.4
|
|
41
|
-
},
|
|
42
|
-
isFixEmpThres: {
|
|
43
|
-
type: Boolean,
|
|
44
|
-
default: false
|
|
45
|
-
},
|
|
46
|
-
isEmpEod: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: false
|
|
49
|
-
},
|
|
50
|
-
eodInterStartSeconds: {
|
|
51
|
-
type: Number,
|
|
52
|
-
default: 3600
|
|
53
|
-
},
|
|
54
|
-
isOneImgEod: {
|
|
55
|
-
type: Boolean,
|
|
56
|
-
default: true
|
|
57
|
-
},
|
|
58
|
-
holiDayThres: {
|
|
59
|
-
type: Number,
|
|
60
|
-
default: 0
|
|
61
|
-
},
|
|
62
|
-
lastMatFileUpdatedDate: {
|
|
63
|
-
type: Number,
|
|
64
|
-
default: 0
|
|
65
|
-
},
|
|
66
|
-
lastParameterUpdatedDate: {
|
|
67
|
-
type: Number,
|
|
68
|
-
default: 0
|
|
69
|
-
},
|
|
70
|
-
lastThresholdUpdatedDate: {
|
|
71
|
-
type: Number,
|
|
72
|
-
default: 0
|
|
73
|
-
},
|
|
74
|
-
liveInterStartSeconds: {
|
|
75
|
-
type: Number,
|
|
76
|
-
default: 1800
|
|
77
|
-
},
|
|
78
|
-
liveLastParameterUpdatedDate: {
|
|
79
|
-
type: Number,
|
|
80
|
-
default: 0
|
|
81
|
-
},
|
|
82
|
-
isOneImgLive: {
|
|
83
|
-
type: Boolean,
|
|
84
|
-
default: true
|
|
85
|
-
},
|
|
86
|
-
liveReidDeltaValue: {
|
|
87
|
-
type: Number,
|
|
88
|
-
default: 0
|
|
89
|
-
},
|
|
90
|
-
requiredLiveReidParameterDays: {
|
|
91
|
-
type: Number,
|
|
92
|
-
default: 5
|
|
93
|
-
},
|
|
94
|
-
liveReidParameterType: {
|
|
95
|
-
type: String,
|
|
96
|
-
default: "default"
|
|
97
|
-
},
|
|
98
|
-
liveReidParameterValue: {
|
|
99
|
-
type: Array,
|
|
100
|
-
default: [0.6, 1, 0.6]
|
|
101
|
-
},
|
|
102
|
-
liveReidSuggestedParameter: {
|
|
103
|
-
type: Boolean,
|
|
104
|
-
default: false
|
|
105
|
-
},
|
|
106
|
-
liveReidSuggestedReduction: {
|
|
107
|
-
type: Boolean,
|
|
108
|
-
default: false
|
|
109
|
-
},
|
|
110
|
-
isGenerateMatData: {
|
|
111
|
-
type: Boolean,
|
|
112
|
-
default: false
|
|
113
|
-
},
|
|
114
|
-
matDataGeneratedDate: {
|
|
115
|
-
type: Number,
|
|
116
|
-
default: 0
|
|
117
|
-
},
|
|
118
|
-
isupdateModel: {
|
|
119
|
-
type: Boolean,
|
|
120
|
-
default: false
|
|
121
|
-
},
|
|
122
|
-
isCheckPastBcThres: {
|
|
123
|
-
type: Boolean,
|
|
124
|
-
default: false
|
|
125
|
-
},
|
|
126
|
-
reidDeltaValue: {
|
|
127
|
-
type: Number,
|
|
128
|
-
default: 0
|
|
129
|
-
},
|
|
130
|
-
reidParameterType: {
|
|
131
|
-
type: String,
|
|
132
|
-
default: "default"
|
|
133
|
-
},
|
|
134
|
-
reidParameterValue: {
|
|
135
|
-
type: Array,
|
|
136
|
-
default: [0.6, 1, 0.6]
|
|
137
|
-
},
|
|
138
|
-
reidSuggesteParameter: {
|
|
139
|
-
type: Boolean,
|
|
140
|
-
default: false
|
|
141
|
-
},
|
|
142
|
-
reidSuggestedReduction: {
|
|
143
|
-
type: Boolean,
|
|
144
|
-
default: false
|
|
145
|
-
},
|
|
146
|
-
reidThresholdHoliday: {
|
|
147
|
-
type: Number,
|
|
148
|
-
default: 0
|
|
149
|
-
},
|
|
150
|
-
reidThresholdWeekDay: {
|
|
151
|
-
type: Number,
|
|
152
|
-
default: 0
|
|
153
|
-
},
|
|
154
|
-
stage: {
|
|
155
|
-
type: String,
|
|
156
|
-
default: ""
|
|
157
|
-
},
|
|
158
|
-
reidReductionValue: {
|
|
159
|
-
type: Object
|
|
160
|
-
},
|
|
161
|
-
liveParameterDays: {
|
|
162
|
-
type: Object
|
|
163
|
-
},
|
|
164
|
-
liveReidXRange: {
|
|
165
|
-
type: Object
|
|
166
|
-
},
|
|
167
|
-
requiredReidParameterDays: {
|
|
168
|
-
type: Number,
|
|
169
|
-
default: 7
|
|
170
|
-
},
|
|
171
|
-
isLiveWalkIn: {
|
|
172
|
-
type: Boolean,
|
|
173
|
-
default: false
|
|
174
|
-
},
|
|
175
|
-
walkInTimeSpent: {
|
|
176
|
-
type: Number,
|
|
177
|
-
default: 3
|
|
178
|
-
},
|
|
179
|
-
isWalkInOneImg: {
|
|
180
|
-
type: Boolean,
|
|
181
|
-
default: false
|
|
182
|
-
},
|
|
183
|
-
isAudit: {
|
|
184
|
-
type: Boolean,
|
|
185
|
-
default: true
|
|
186
|
-
},
|
|
187
|
-
isForceCombine: {
|
|
188
|
-
type: Boolean,
|
|
189
|
-
default: false
|
|
190
|
-
},
|
|
191
|
-
reautomationStage: {
|
|
192
|
-
type: Boolean,
|
|
193
|
-
default: false
|
|
194
|
-
},
|
|
195
|
-
reautomationStartDateString: {
|
|
196
|
-
type: String,
|
|
197
|
-
default: ""
|
|
198
|
-
},
|
|
199
|
-
reautomationDays: {
|
|
200
|
-
type: Number,
|
|
201
|
-
default: 2
|
|
202
|
-
},
|
|
203
|
-
tracker: {
|
|
204
|
-
countMechanism: {
|
|
205
|
-
type: String,
|
|
206
|
-
default: "REGION-SHIFT"
|
|
207
|
-
},
|
|
208
|
-
pathwayDirection: {
|
|
209
|
-
type: String,
|
|
210
|
-
default: ""
|
|
211
|
-
},
|
|
212
|
-
processingType: {
|
|
213
|
-
type: String,
|
|
214
|
-
default: "ASYNCHRONOUS"
|
|
215
|
-
},
|
|
216
|
-
postProcess: {
|
|
217
|
-
type: Boolean,
|
|
218
|
-
default: true
|
|
219
|
-
},
|
|
220
|
-
yoloModel:{
|
|
221
|
-
type:String,
|
|
222
|
-
default:"YOLOX"
|
|
223
|
-
},
|
|
224
|
-
dynamicFrameRate:{
|
|
225
|
-
type:Boolean,
|
|
226
|
-
default:true
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
strict: true,
|
|
234
|
-
versionKey: false,
|
|
235
|
-
timestamps: true,
|
|
236
|
-
}
|
|
237
|
-
);
|
|
238
|
-
|
|
239
|
-
externalParameter.index({ storeId: 1, zoneName: 1 });
|
|
240
|
-
|
|
241
|
-
export default mongoose.model("externalParameter", externalParameter, "externalParameter");
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
|
|
3
|
+
const externalParameter = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
storeId: {
|
|
6
|
+
type: String,
|
|
7
|
+
trim: true,
|
|
8
|
+
required: true,
|
|
9
|
+
},
|
|
10
|
+
productName: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: true
|
|
13
|
+
},
|
|
14
|
+
zoneName: {
|
|
15
|
+
type: String,
|
|
16
|
+
required: true
|
|
17
|
+
},
|
|
18
|
+
clientId: {
|
|
19
|
+
type: String,
|
|
20
|
+
trim: true,
|
|
21
|
+
},
|
|
22
|
+
isAlwaysAudit: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: false
|
|
25
|
+
},
|
|
26
|
+
bcTrendOldPipelineWkday: {
|
|
27
|
+
type: Number,
|
|
28
|
+
default: 0
|
|
29
|
+
},
|
|
30
|
+
bcTrendOldPipelineWkend: {
|
|
31
|
+
type: Number,
|
|
32
|
+
default: 0
|
|
33
|
+
},
|
|
34
|
+
isManualEdit: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: false
|
|
37
|
+
},
|
|
38
|
+
empThres: {
|
|
39
|
+
type: Number,
|
|
40
|
+
default: 0.4
|
|
41
|
+
},
|
|
42
|
+
isFixEmpThres: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: false
|
|
45
|
+
},
|
|
46
|
+
isEmpEod: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: false
|
|
49
|
+
},
|
|
50
|
+
eodInterStartSeconds: {
|
|
51
|
+
type: Number,
|
|
52
|
+
default: 3600
|
|
53
|
+
},
|
|
54
|
+
isOneImgEod: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: true
|
|
57
|
+
},
|
|
58
|
+
holiDayThres: {
|
|
59
|
+
type: Number,
|
|
60
|
+
default: 0
|
|
61
|
+
},
|
|
62
|
+
lastMatFileUpdatedDate: {
|
|
63
|
+
type: Number,
|
|
64
|
+
default: 0
|
|
65
|
+
},
|
|
66
|
+
lastParameterUpdatedDate: {
|
|
67
|
+
type: Number,
|
|
68
|
+
default: 0
|
|
69
|
+
},
|
|
70
|
+
lastThresholdUpdatedDate: {
|
|
71
|
+
type: Number,
|
|
72
|
+
default: 0
|
|
73
|
+
},
|
|
74
|
+
liveInterStartSeconds: {
|
|
75
|
+
type: Number,
|
|
76
|
+
default: 1800
|
|
77
|
+
},
|
|
78
|
+
liveLastParameterUpdatedDate: {
|
|
79
|
+
type: Number,
|
|
80
|
+
default: 0
|
|
81
|
+
},
|
|
82
|
+
isOneImgLive: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
default: true
|
|
85
|
+
},
|
|
86
|
+
liveReidDeltaValue: {
|
|
87
|
+
type: Number,
|
|
88
|
+
default: 0
|
|
89
|
+
},
|
|
90
|
+
requiredLiveReidParameterDays: {
|
|
91
|
+
type: Number,
|
|
92
|
+
default: 5
|
|
93
|
+
},
|
|
94
|
+
liveReidParameterType: {
|
|
95
|
+
type: String,
|
|
96
|
+
default: "default"
|
|
97
|
+
},
|
|
98
|
+
liveReidParameterValue: {
|
|
99
|
+
type: Array,
|
|
100
|
+
default: [0.6, 1, 0.6]
|
|
101
|
+
},
|
|
102
|
+
liveReidSuggestedParameter: {
|
|
103
|
+
type: Boolean,
|
|
104
|
+
default: false
|
|
105
|
+
},
|
|
106
|
+
liveReidSuggestedReduction: {
|
|
107
|
+
type: Boolean,
|
|
108
|
+
default: false
|
|
109
|
+
},
|
|
110
|
+
isGenerateMatData: {
|
|
111
|
+
type: Boolean,
|
|
112
|
+
default: false
|
|
113
|
+
},
|
|
114
|
+
matDataGeneratedDate: {
|
|
115
|
+
type: Number,
|
|
116
|
+
default: 0
|
|
117
|
+
},
|
|
118
|
+
isupdateModel: {
|
|
119
|
+
type: Boolean,
|
|
120
|
+
default: false
|
|
121
|
+
},
|
|
122
|
+
isCheckPastBcThres: {
|
|
123
|
+
type: Boolean,
|
|
124
|
+
default: false
|
|
125
|
+
},
|
|
126
|
+
reidDeltaValue: {
|
|
127
|
+
type: Number,
|
|
128
|
+
default: 0
|
|
129
|
+
},
|
|
130
|
+
reidParameterType: {
|
|
131
|
+
type: String,
|
|
132
|
+
default: "default"
|
|
133
|
+
},
|
|
134
|
+
reidParameterValue: {
|
|
135
|
+
type: Array,
|
|
136
|
+
default: [0.6, 1, 0.6]
|
|
137
|
+
},
|
|
138
|
+
reidSuggesteParameter: {
|
|
139
|
+
type: Boolean,
|
|
140
|
+
default: false
|
|
141
|
+
},
|
|
142
|
+
reidSuggestedReduction: {
|
|
143
|
+
type: Boolean,
|
|
144
|
+
default: false
|
|
145
|
+
},
|
|
146
|
+
reidThresholdHoliday: {
|
|
147
|
+
type: Number,
|
|
148
|
+
default: 0
|
|
149
|
+
},
|
|
150
|
+
reidThresholdWeekDay: {
|
|
151
|
+
type: Number,
|
|
152
|
+
default: 0
|
|
153
|
+
},
|
|
154
|
+
stage: {
|
|
155
|
+
type: String,
|
|
156
|
+
default: ""
|
|
157
|
+
},
|
|
158
|
+
reidReductionValue: {
|
|
159
|
+
type: Object
|
|
160
|
+
},
|
|
161
|
+
liveParameterDays: {
|
|
162
|
+
type: Object
|
|
163
|
+
},
|
|
164
|
+
liveReidXRange: {
|
|
165
|
+
type: Object
|
|
166
|
+
},
|
|
167
|
+
requiredReidParameterDays: {
|
|
168
|
+
type: Number,
|
|
169
|
+
default: 7
|
|
170
|
+
},
|
|
171
|
+
isLiveWalkIn: {
|
|
172
|
+
type: Boolean,
|
|
173
|
+
default: false
|
|
174
|
+
},
|
|
175
|
+
walkInTimeSpent: {
|
|
176
|
+
type: Number,
|
|
177
|
+
default: 3
|
|
178
|
+
},
|
|
179
|
+
isWalkInOneImg: {
|
|
180
|
+
type: Boolean,
|
|
181
|
+
default: false
|
|
182
|
+
},
|
|
183
|
+
isAudit: {
|
|
184
|
+
type: Boolean,
|
|
185
|
+
default: true
|
|
186
|
+
},
|
|
187
|
+
isForceCombine: {
|
|
188
|
+
type: Boolean,
|
|
189
|
+
default: false
|
|
190
|
+
},
|
|
191
|
+
reautomationStage: {
|
|
192
|
+
type: Boolean,
|
|
193
|
+
default: false
|
|
194
|
+
},
|
|
195
|
+
reautomationStartDateString: {
|
|
196
|
+
type: String,
|
|
197
|
+
default: ""
|
|
198
|
+
},
|
|
199
|
+
reautomationDays: {
|
|
200
|
+
type: Number,
|
|
201
|
+
default: 2
|
|
202
|
+
},
|
|
203
|
+
tracker: {
|
|
204
|
+
countMechanism: {
|
|
205
|
+
type: String,
|
|
206
|
+
default: "REGION-SHIFT"
|
|
207
|
+
},
|
|
208
|
+
pathwayDirection: {
|
|
209
|
+
type: String,
|
|
210
|
+
default: ""
|
|
211
|
+
},
|
|
212
|
+
processingType: {
|
|
213
|
+
type: String,
|
|
214
|
+
default: "ASYNCHRONOUS"
|
|
215
|
+
},
|
|
216
|
+
postProcess: {
|
|
217
|
+
type: Boolean,
|
|
218
|
+
default: true
|
|
219
|
+
},
|
|
220
|
+
yoloModel:{
|
|
221
|
+
type:String,
|
|
222
|
+
default:"YOLOX"
|
|
223
|
+
},
|
|
224
|
+
dynamicFrameRate:{
|
|
225
|
+
type:Boolean,
|
|
226
|
+
default:true
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
strict: true,
|
|
234
|
+
versionKey: false,
|
|
235
|
+
timestamps: true,
|
|
236
|
+
}
|
|
237
|
+
);
|
|
238
|
+
|
|
239
|
+
externalParameter.index({ storeId: 1, zoneName: 1 });
|
|
240
|
+
|
|
241
|
+
export default mongoose.model("externalParameter", externalParameter, "externalParameter");
|
package/schema/eyetest.model.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @name api_eyeTest_models
|
|
3
|
-
* @description EyeTest Schema
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import mongoose from "mongoose";
|
|
7
|
-
|
|
8
|
-
// Schema
|
|
9
|
-
const collection = new mongoose.Schema(
|
|
10
|
-
{},
|
|
11
|
-
{
|
|
12
|
-
timestamps: true,
|
|
13
|
-
strict: true,
|
|
14
|
-
versionKey: false,
|
|
15
|
-
}
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
export default mongoose.model("eyeTest", collection);
|
|
1
|
+
/**
|
|
2
|
+
* @name api_eyeTest_models
|
|
3
|
+
* @description EyeTest Schema
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import mongoose from "mongoose";
|
|
7
|
+
|
|
8
|
+
// Schema
|
|
9
|
+
const collection = new mongoose.Schema(
|
|
10
|
+
{},
|
|
11
|
+
{
|
|
12
|
+
timestamps: true,
|
|
13
|
+
strict: true,
|
|
14
|
+
versionKey: false,
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
export default mongoose.model("eyeTest", collection);
|
package/schema/fitting.model.js
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @name api_eyeTest_models
|
|
3
|
-
* @description EyeTest Schema
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { Schema, model } from 'mongoose';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
// Schema
|
|
10
|
-
const collection = new Schema( {
|
|
11
|
-
actionType: {
|
|
12
|
-
type: String,
|
|
13
|
-
required:true
|
|
14
|
-
},
|
|
15
|
-
workstationId: {
|
|
16
|
-
type: String,
|
|
17
|
-
required:true
|
|
18
|
-
},
|
|
19
|
-
staticIP: {
|
|
20
|
-
type: String,
|
|
21
|
-
},
|
|
22
|
-
fittingId: {
|
|
23
|
-
type: String,
|
|
24
|
-
},
|
|
25
|
-
userId: {
|
|
26
|
-
type: String,
|
|
27
|
-
},
|
|
28
|
-
userEmail:{
|
|
29
|
-
type: String,
|
|
30
|
-
},
|
|
31
|
-
status:{
|
|
32
|
-
type:Boolean
|
|
33
|
-
},
|
|
34
|
-
frameType:{
|
|
35
|
-
type: String,
|
|
36
|
-
},
|
|
37
|
-
productId:{
|
|
38
|
-
type: String,
|
|
39
|
-
},
|
|
40
|
-
timestamp:{
|
|
41
|
-
type: String,
|
|
42
|
-
}
|
|
43
|
-
}, {
|
|
44
|
-
timestamps: true,
|
|
45
|
-
strict: true,
|
|
46
|
-
versionKey: false,
|
|
47
|
-
} );
|
|
48
|
-
|
|
49
|
-
collection.index({createdAt: 1 })
|
|
50
|
-
collection.index({fittingId: 1 })
|
|
51
|
-
collection.index({userId: 1 })
|
|
52
|
-
export default model( 'fitting', collection );
|
|
1
|
+
/**
|
|
2
|
+
* @name api_eyeTest_models
|
|
3
|
+
* @description EyeTest Schema
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { Schema, model } from 'mongoose';
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
// Schema
|
|
10
|
+
const collection = new Schema( {
|
|
11
|
+
actionType: {
|
|
12
|
+
type: String,
|
|
13
|
+
required:true
|
|
14
|
+
},
|
|
15
|
+
workstationId: {
|
|
16
|
+
type: String,
|
|
17
|
+
required:true
|
|
18
|
+
},
|
|
19
|
+
staticIP: {
|
|
20
|
+
type: String,
|
|
21
|
+
},
|
|
22
|
+
fittingId: {
|
|
23
|
+
type: String,
|
|
24
|
+
},
|
|
25
|
+
userId: {
|
|
26
|
+
type: String,
|
|
27
|
+
},
|
|
28
|
+
userEmail:{
|
|
29
|
+
type: String,
|
|
30
|
+
},
|
|
31
|
+
status:{
|
|
32
|
+
type:Boolean
|
|
33
|
+
},
|
|
34
|
+
frameType:{
|
|
35
|
+
type: String,
|
|
36
|
+
},
|
|
37
|
+
productId:{
|
|
38
|
+
type: String,
|
|
39
|
+
},
|
|
40
|
+
timestamp:{
|
|
41
|
+
type: String,
|
|
42
|
+
}
|
|
43
|
+
}, {
|
|
44
|
+
timestamps: true,
|
|
45
|
+
strict: true,
|
|
46
|
+
versionKey: false,
|
|
47
|
+
} );
|
|
48
|
+
|
|
49
|
+
collection.index({createdAt: 1 })
|
|
50
|
+
collection.index({fittingId: 1 })
|
|
51
|
+
collection.index({userId: 1 })
|
|
52
|
+
export default model( 'fitting', collection );
|