tango-api-schema 3.0.2 → 3.0.3
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,188 +1,188 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
|
|
3
|
-
const processedchecklistconfigSchema = new mongoose.Schema({
|
|
4
|
-
client_id: {
|
|
5
|
-
type: String,
|
|
6
|
-
required:true
|
|
7
|
-
},
|
|
8
|
-
// brandId: {
|
|
9
|
-
// type: mongoose.SchemaTypes.ObjectId,
|
|
10
|
-
// required:true
|
|
11
|
-
// },
|
|
12
|
-
date_iso: {
|
|
13
|
-
type: Date,
|
|
14
|
-
},
|
|
15
|
-
date_string: {
|
|
16
|
-
type: String,
|
|
17
|
-
},
|
|
18
|
-
sourceCheckList_id: {
|
|
19
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
20
|
-
ref: 'checklistconfig'
|
|
21
|
-
},
|
|
22
|
-
checkListName: {
|
|
23
|
-
type: String,
|
|
24
|
-
required:true
|
|
25
|
-
},
|
|
26
|
-
scheduleStartTime: {
|
|
27
|
-
type: String
|
|
28
|
-
},
|
|
29
|
-
scheduleEndTime: {
|
|
30
|
-
type: String
|
|
31
|
-
},
|
|
32
|
-
scheduleStartTime_iso: {
|
|
33
|
-
type: Date
|
|
34
|
-
},
|
|
35
|
-
scheduleEndTime_iso: {
|
|
36
|
-
type: Date
|
|
37
|
-
},
|
|
38
|
-
allowedOverTime: {
|
|
39
|
-
type: Boolean,
|
|
40
|
-
default:false
|
|
41
|
-
},
|
|
42
|
-
allowedStoreLocation: {
|
|
43
|
-
type: Boolean,
|
|
44
|
-
default:false
|
|
45
|
-
},
|
|
46
|
-
createdBy: {
|
|
47
|
-
type: mongoose.SchemaTypes.ObjectId,
|
|
48
|
-
},
|
|
49
|
-
createdByName: {
|
|
50
|
-
type: String,
|
|
51
|
-
},
|
|
52
|
-
questionAnswers: {
|
|
53
|
-
type: Array
|
|
54
|
-
},
|
|
55
|
-
createdAt: {
|
|
56
|
-
type: Date,
|
|
57
|
-
default: Date.now
|
|
58
|
-
},
|
|
59
|
-
updatedAt: {
|
|
60
|
-
type: Date,
|
|
61
|
-
default: Date.now
|
|
62
|
-
},
|
|
63
|
-
isdeleted: {
|
|
64
|
-
type: Boolean,
|
|
65
|
-
default: false
|
|
66
|
-
},
|
|
67
|
-
questionCount: {
|
|
68
|
-
type: Number,
|
|
69
|
-
default: 0
|
|
70
|
-
},
|
|
71
|
-
storeCount: {
|
|
72
|
-
type: Number,
|
|
73
|
-
default: 0
|
|
74
|
-
},
|
|
75
|
-
publishDate: {
|
|
76
|
-
type: Date,
|
|
77
|
-
},
|
|
78
|
-
locationCount: {
|
|
79
|
-
type: Number
|
|
80
|
-
},
|
|
81
|
-
checkListType: {
|
|
82
|
-
type: String,
|
|
83
|
-
default: "custom",
|
|
84
|
-
enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle",'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum','suspiciousactivity','boxalert','suspiciousfootfall','drinking','bagdetection','inventorycount','carsattended','numberplateinfo','vehicle_check_in']
|
|
85
|
-
},
|
|
86
|
-
startTime:{
|
|
87
|
-
type:Date
|
|
88
|
-
},
|
|
89
|
-
scheduleRepeatedType: {
|
|
90
|
-
type: String,
|
|
91
|
-
default: '',
|
|
92
|
-
enum: ["daily", "weekly", "monthly","range","onetime","weekday",""]
|
|
93
|
-
},
|
|
94
|
-
allowedMultiSubmit: {
|
|
95
|
-
type: Boolean,
|
|
96
|
-
default:false
|
|
97
|
-
},
|
|
98
|
-
approver:{
|
|
99
|
-
type:Array,
|
|
100
|
-
default:[]
|
|
101
|
-
},
|
|
102
|
-
checkListDescription:{
|
|
103
|
-
type: String,
|
|
104
|
-
},
|
|
105
|
-
remainder:{
|
|
106
|
-
type:Array,
|
|
107
|
-
default:[]
|
|
108
|
-
},
|
|
109
|
-
restrictAttendance:{
|
|
110
|
-
type:Boolean,
|
|
111
|
-
default:false
|
|
112
|
-
},
|
|
113
|
-
coverage:{
|
|
114
|
-
type: String,
|
|
115
|
-
default: 'store',
|
|
116
|
-
enum: ["store", "user"]
|
|
117
|
-
},
|
|
118
|
-
isPlano:{
|
|
119
|
-
type:Boolean,
|
|
120
|
-
},
|
|
121
|
-
webnotification:{
|
|
122
|
-
type:Boolean,
|
|
123
|
-
default:false
|
|
124
|
-
},
|
|
125
|
-
rawImageUpload: {
|
|
126
|
-
type: Boolean,
|
|
127
|
-
default:false
|
|
128
|
-
},
|
|
129
|
-
aiStoreList:{
|
|
130
|
-
type:Array
|
|
131
|
-
},
|
|
132
|
-
aiConfig:{
|
|
133
|
-
assignConfig: {
|
|
134
|
-
type:String
|
|
135
|
-
},
|
|
136
|
-
events:{
|
|
137
|
-
type:Array
|
|
138
|
-
},
|
|
139
|
-
alerts: {
|
|
140
|
-
users:{
|
|
141
|
-
type:Array
|
|
142
|
-
},
|
|
143
|
-
},
|
|
144
|
-
alertType: {
|
|
145
|
-
mobile: {
|
|
146
|
-
type: Boolean,
|
|
147
|
-
default: true
|
|
148
|
-
},
|
|
149
|
-
web: {
|
|
150
|
-
type: Boolean,
|
|
151
|
-
default: false
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
storeOpenClose:{
|
|
155
|
-
buffer: {
|
|
156
|
-
openTime:{
|
|
157
|
-
type:Number
|
|
158
|
-
},
|
|
159
|
-
closeTime:{
|
|
160
|
-
type:Number
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
},
|
|
164
|
-
mobileDetection:{
|
|
165
|
-
usageExceed: {
|
|
166
|
-
type:Number
|
|
167
|
-
},
|
|
168
|
-
detectionArea: {
|
|
169
|
-
type:Array
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
autoTask:{
|
|
173
|
-
type:Boolean
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
rawVideoUpload: {
|
|
177
|
-
type: Boolean,
|
|
178
|
-
default:false
|
|
179
|
-
},
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
strict: true,
|
|
183
|
-
versionKey: false,
|
|
184
|
-
timestamps: true,
|
|
185
|
-
},
|
|
186
|
-
);
|
|
187
|
-
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const processedchecklistconfigSchema = new mongoose.Schema({
|
|
4
|
+
client_id: {
|
|
5
|
+
type: String,
|
|
6
|
+
required:true
|
|
7
|
+
},
|
|
8
|
+
// brandId: {
|
|
9
|
+
// type: mongoose.SchemaTypes.ObjectId,
|
|
10
|
+
// required:true
|
|
11
|
+
// },
|
|
12
|
+
date_iso: {
|
|
13
|
+
type: Date,
|
|
14
|
+
},
|
|
15
|
+
date_string: {
|
|
16
|
+
type: String,
|
|
17
|
+
},
|
|
18
|
+
sourceCheckList_id: {
|
|
19
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
20
|
+
ref: 'checklistconfig'
|
|
21
|
+
},
|
|
22
|
+
checkListName: {
|
|
23
|
+
type: String,
|
|
24
|
+
required:true
|
|
25
|
+
},
|
|
26
|
+
scheduleStartTime: {
|
|
27
|
+
type: String
|
|
28
|
+
},
|
|
29
|
+
scheduleEndTime: {
|
|
30
|
+
type: String
|
|
31
|
+
},
|
|
32
|
+
scheduleStartTime_iso: {
|
|
33
|
+
type: Date
|
|
34
|
+
},
|
|
35
|
+
scheduleEndTime_iso: {
|
|
36
|
+
type: Date
|
|
37
|
+
},
|
|
38
|
+
allowedOverTime: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default:false
|
|
41
|
+
},
|
|
42
|
+
allowedStoreLocation: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default:false
|
|
45
|
+
},
|
|
46
|
+
createdBy: {
|
|
47
|
+
type: mongoose.SchemaTypes.ObjectId,
|
|
48
|
+
},
|
|
49
|
+
createdByName: {
|
|
50
|
+
type: String,
|
|
51
|
+
},
|
|
52
|
+
questionAnswers: {
|
|
53
|
+
type: Array
|
|
54
|
+
},
|
|
55
|
+
createdAt: {
|
|
56
|
+
type: Date,
|
|
57
|
+
default: Date.now
|
|
58
|
+
},
|
|
59
|
+
updatedAt: {
|
|
60
|
+
type: Date,
|
|
61
|
+
default: Date.now
|
|
62
|
+
},
|
|
63
|
+
isdeleted: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: false
|
|
66
|
+
},
|
|
67
|
+
questionCount: {
|
|
68
|
+
type: Number,
|
|
69
|
+
default: 0
|
|
70
|
+
},
|
|
71
|
+
storeCount: {
|
|
72
|
+
type: Number,
|
|
73
|
+
default: 0
|
|
74
|
+
},
|
|
75
|
+
publishDate: {
|
|
76
|
+
type: Date,
|
|
77
|
+
},
|
|
78
|
+
locationCount: {
|
|
79
|
+
type: Number
|
|
80
|
+
},
|
|
81
|
+
checkListType: {
|
|
82
|
+
type: String,
|
|
83
|
+
default: "custom",
|
|
84
|
+
enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle",'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum','suspiciousactivity','boxalert','suspiciousfootfall','drinking','bagdetection','inventorycount','carsattended','numberplateinfo','vehicle_check_in']
|
|
85
|
+
},
|
|
86
|
+
startTime:{
|
|
87
|
+
type:Date
|
|
88
|
+
},
|
|
89
|
+
scheduleRepeatedType: {
|
|
90
|
+
type: String,
|
|
91
|
+
default: '',
|
|
92
|
+
enum: ["daily", "weekly", "monthly","range","onetime","weekday",""]
|
|
93
|
+
},
|
|
94
|
+
allowedMultiSubmit: {
|
|
95
|
+
type: Boolean,
|
|
96
|
+
default:false
|
|
97
|
+
},
|
|
98
|
+
approver:{
|
|
99
|
+
type:Array,
|
|
100
|
+
default:[]
|
|
101
|
+
},
|
|
102
|
+
checkListDescription:{
|
|
103
|
+
type: String,
|
|
104
|
+
},
|
|
105
|
+
remainder:{
|
|
106
|
+
type:Array,
|
|
107
|
+
default:[]
|
|
108
|
+
},
|
|
109
|
+
restrictAttendance:{
|
|
110
|
+
type:Boolean,
|
|
111
|
+
default:false
|
|
112
|
+
},
|
|
113
|
+
coverage:{
|
|
114
|
+
type: String,
|
|
115
|
+
default: 'store',
|
|
116
|
+
enum: ["store", "user"]
|
|
117
|
+
},
|
|
118
|
+
isPlano:{
|
|
119
|
+
type:Boolean,
|
|
120
|
+
},
|
|
121
|
+
webnotification:{
|
|
122
|
+
type:Boolean,
|
|
123
|
+
default:false
|
|
124
|
+
},
|
|
125
|
+
rawImageUpload: {
|
|
126
|
+
type: Boolean,
|
|
127
|
+
default:false
|
|
128
|
+
},
|
|
129
|
+
aiStoreList:{
|
|
130
|
+
type:Array
|
|
131
|
+
},
|
|
132
|
+
aiConfig:{
|
|
133
|
+
assignConfig: {
|
|
134
|
+
type:String
|
|
135
|
+
},
|
|
136
|
+
events:{
|
|
137
|
+
type:Array
|
|
138
|
+
},
|
|
139
|
+
alerts: {
|
|
140
|
+
users:{
|
|
141
|
+
type:Array
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
alertType: {
|
|
145
|
+
mobile: {
|
|
146
|
+
type: Boolean,
|
|
147
|
+
default: true
|
|
148
|
+
},
|
|
149
|
+
web: {
|
|
150
|
+
type: Boolean,
|
|
151
|
+
default: false
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
storeOpenClose:{
|
|
155
|
+
buffer: {
|
|
156
|
+
openTime:{
|
|
157
|
+
type:Number
|
|
158
|
+
},
|
|
159
|
+
closeTime:{
|
|
160
|
+
type:Number
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
mobileDetection:{
|
|
165
|
+
usageExceed: {
|
|
166
|
+
type:Number
|
|
167
|
+
},
|
|
168
|
+
detectionArea: {
|
|
169
|
+
type:Array
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
autoTask:{
|
|
173
|
+
type:Boolean
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
rawVideoUpload: {
|
|
177
|
+
type: Boolean,
|
|
178
|
+
default:false
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
strict: true,
|
|
183
|
+
versionKey: false,
|
|
184
|
+
timestamps: true,
|
|
185
|
+
},
|
|
186
|
+
);
|
|
187
|
+
|
|
188
188
|
export default mongoose.model( 'processedchecklistconfig', processedchecklistconfigSchema);
|
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
|
|
3
|
-
const processeddetectionSchema = new mongoose.Schema({
|
|
4
|
-
client_id:{
|
|
5
|
-
type:String,
|
|
6
|
-
required:true
|
|
7
|
-
},
|
|
8
|
-
store_id:{
|
|
9
|
-
type:String,
|
|
10
|
-
required:true
|
|
11
|
-
},
|
|
12
|
-
userName:{
|
|
13
|
-
type:String,
|
|
14
|
-
required:true,
|
|
15
|
-
default:'System Created'
|
|
16
|
-
},
|
|
17
|
-
userId:{
|
|
18
|
-
type:mongoose.SchemaTypes.ObjectId,
|
|
19
|
-
},
|
|
20
|
-
time:{
|
|
21
|
-
type:String,
|
|
22
|
-
required:true
|
|
23
|
-
},
|
|
24
|
-
type:{
|
|
25
|
-
type:String,
|
|
26
|
-
required:true,
|
|
27
|
-
default:'negative'
|
|
28
|
-
},
|
|
29
|
-
checklistName:{
|
|
30
|
-
type: String,
|
|
31
|
-
required: true,
|
|
32
|
-
},
|
|
33
|
-
checklistId:{
|
|
34
|
-
type:mongoose.SchemaTypes.ObjectId,
|
|
35
|
-
required:true
|
|
36
|
-
},
|
|
37
|
-
sourceChecklist_id:{
|
|
38
|
-
type:mongoose.SchemaTypes.ObjectId,
|
|
39
|
-
required:true
|
|
40
|
-
},
|
|
41
|
-
category:{
|
|
42
|
-
type:String
|
|
43
|
-
},
|
|
44
|
-
reason:{
|
|
45
|
-
type:String,
|
|
46
|
-
default:''
|
|
47
|
-
},
|
|
48
|
-
acknowledgedDate:{
|
|
49
|
-
type:Date,
|
|
50
|
-
default:''
|
|
51
|
-
},
|
|
52
|
-
date_iso:{
|
|
53
|
-
type:Date
|
|
54
|
-
},
|
|
55
|
-
date_string:{
|
|
56
|
-
type:String
|
|
57
|
-
},
|
|
58
|
-
startRange:{
|
|
59
|
-
type:String
|
|
60
|
-
},
|
|
61
|
-
scheduleTime:{
|
|
62
|
-
type:Date
|
|
63
|
-
},
|
|
64
|
-
timeStamp:{
|
|
65
|
-
type:Number
|
|
66
|
-
},
|
|
67
|
-
timeFormat:{
|
|
68
|
-
type:String
|
|
69
|
-
},
|
|
70
|
-
createdAt: {
|
|
71
|
-
type: Date,
|
|
72
|
-
default: Date.now()
|
|
73
|
-
},
|
|
74
|
-
updatedAt: {
|
|
75
|
-
type: Date,
|
|
76
|
-
default: Date.now()
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
strict: true,
|
|
81
|
-
versionKey: false,
|
|
82
|
-
timestamps: true,
|
|
83
|
-
},
|
|
84
|
-
);
|
|
85
|
-
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const processeddetectionSchema = new mongoose.Schema({
|
|
4
|
+
client_id:{
|
|
5
|
+
type:String,
|
|
6
|
+
required:true
|
|
7
|
+
},
|
|
8
|
+
store_id:{
|
|
9
|
+
type:String,
|
|
10
|
+
required:true
|
|
11
|
+
},
|
|
12
|
+
userName:{
|
|
13
|
+
type:String,
|
|
14
|
+
required:true,
|
|
15
|
+
default:'System Created'
|
|
16
|
+
},
|
|
17
|
+
userId:{
|
|
18
|
+
type:mongoose.SchemaTypes.ObjectId,
|
|
19
|
+
},
|
|
20
|
+
time:{
|
|
21
|
+
type:String,
|
|
22
|
+
required:true
|
|
23
|
+
},
|
|
24
|
+
type:{
|
|
25
|
+
type:String,
|
|
26
|
+
required:true,
|
|
27
|
+
default:'negative'
|
|
28
|
+
},
|
|
29
|
+
checklistName:{
|
|
30
|
+
type: String,
|
|
31
|
+
required: true,
|
|
32
|
+
},
|
|
33
|
+
checklistId:{
|
|
34
|
+
type:mongoose.SchemaTypes.ObjectId,
|
|
35
|
+
required:true
|
|
36
|
+
},
|
|
37
|
+
sourceChecklist_id:{
|
|
38
|
+
type:mongoose.SchemaTypes.ObjectId,
|
|
39
|
+
required:true
|
|
40
|
+
},
|
|
41
|
+
category:{
|
|
42
|
+
type:String
|
|
43
|
+
},
|
|
44
|
+
reason:{
|
|
45
|
+
type:String,
|
|
46
|
+
default:''
|
|
47
|
+
},
|
|
48
|
+
acknowledgedDate:{
|
|
49
|
+
type:Date,
|
|
50
|
+
default:''
|
|
51
|
+
},
|
|
52
|
+
date_iso:{
|
|
53
|
+
type:Date
|
|
54
|
+
},
|
|
55
|
+
date_string:{
|
|
56
|
+
type:String
|
|
57
|
+
},
|
|
58
|
+
startRange:{
|
|
59
|
+
type:String
|
|
60
|
+
},
|
|
61
|
+
scheduleTime:{
|
|
62
|
+
type:Date
|
|
63
|
+
},
|
|
64
|
+
timeStamp:{
|
|
65
|
+
type:Number
|
|
66
|
+
},
|
|
67
|
+
timeFormat:{
|
|
68
|
+
type:String
|
|
69
|
+
},
|
|
70
|
+
createdAt: {
|
|
71
|
+
type: Date,
|
|
72
|
+
default: Date.now()
|
|
73
|
+
},
|
|
74
|
+
updatedAt: {
|
|
75
|
+
type: Date,
|
|
76
|
+
default: Date.now()
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
strict: true,
|
|
81
|
+
versionKey: false,
|
|
82
|
+
timestamps: true,
|
|
83
|
+
},
|
|
84
|
+
);
|
|
85
|
+
|
|
86
86
|
export default mongoose.model( 'processeddetection', processeddetectionSchema);
|
package/schema/quality.model.js
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
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
|
-
orderId: {
|
|
23
|
-
type: String,
|
|
24
|
-
},
|
|
25
|
-
userId: {
|
|
26
|
-
type: String,
|
|
27
|
-
},
|
|
28
|
-
productId : {
|
|
29
|
-
type: String,
|
|
30
|
-
},
|
|
31
|
-
QCHold : {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
default:false
|
|
34
|
-
},
|
|
35
|
-
timestamp:{
|
|
36
|
-
type: String,
|
|
37
|
-
},
|
|
38
|
-
userEmail:{
|
|
39
|
-
type: String,
|
|
40
|
-
},
|
|
41
|
-
fittingId:{
|
|
42
|
-
type: String,
|
|
43
|
-
},
|
|
44
|
-
status:{
|
|
45
|
-
type: Boolean,
|
|
46
|
-
}
|
|
47
|
-
}, {
|
|
48
|
-
timestamps: true,
|
|
49
|
-
strict: true,
|
|
50
|
-
versionKey: false,
|
|
51
|
-
} );
|
|
52
|
-
|
|
53
|
-
collection.index({ createdAt: 1 })
|
|
54
|
-
collection.index({ fittingId: 1 })
|
|
55
|
-
collection.index({ userId: 1 })
|
|
56
|
-
|
|
57
|
-
export default model( 'qualityCheck', 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
|
+
orderId: {
|
|
23
|
+
type: String,
|
|
24
|
+
},
|
|
25
|
+
userId: {
|
|
26
|
+
type: String,
|
|
27
|
+
},
|
|
28
|
+
productId : {
|
|
29
|
+
type: String,
|
|
30
|
+
},
|
|
31
|
+
QCHold : {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default:false
|
|
34
|
+
},
|
|
35
|
+
timestamp:{
|
|
36
|
+
type: String,
|
|
37
|
+
},
|
|
38
|
+
userEmail:{
|
|
39
|
+
type: String,
|
|
40
|
+
},
|
|
41
|
+
fittingId:{
|
|
42
|
+
type: String,
|
|
43
|
+
},
|
|
44
|
+
status:{
|
|
45
|
+
type: Boolean,
|
|
46
|
+
}
|
|
47
|
+
}, {
|
|
48
|
+
timestamps: true,
|
|
49
|
+
strict: true,
|
|
50
|
+
versionKey: false,
|
|
51
|
+
} );
|
|
52
|
+
|
|
53
|
+
collection.index({ createdAt: 1 })
|
|
54
|
+
collection.index({ fittingId: 1 })
|
|
55
|
+
collection.index({ userId: 1 })
|
|
56
|
+
|
|
57
|
+
export default model( 'qualityCheck', collection );
|