tango-api-schema 2.1.99 → 2.2.1-plano
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 +50 -1
- package/package.json +3 -2
- package/schema/appVersion.js +7 -0
- package/schema/assignAudit.model.js +1 -1
- package/schema/auditConfig.model.js +41 -0
- package/schema/auditLogs.model.js +1 -1
- package/schema/auditStoreData.model.js +1 -1
- package/schema/auditUsers.model.js +21 -7
- package/schema/binaryAudit.model.js +1 -1
- package/schema/camera.model.js +67 -0
- package/schema/checklistassignconfig.js +22 -3
- package/schema/checklistconfig.js +69 -1
- package/schema/checklistlog.js +17 -0
- package/schema/checklistquestionconfig.js +6 -0
- package/schema/client.model.js +116 -1
- package/schema/countryCurrency.model.js +18 -0
- package/schema/download.js +17 -1
- package/schema/emailers.model.js +46 -0
- package/schema/empDetectionOutput.model.js +4 -1
- package/schema/externalParameter.model.js +48 -9
- package/schema/fixtureConfig.model.js +202 -0
- package/schema/fixtureLibrary.model.js +165 -0
- package/schema/fixtureShelf.model.js +72 -0
- package/schema/liveConnection.model.js +7 -1
- package/schema/loginAttempt.model.js +26 -0
- package/schema/nobBilling.model.js +10 -4
- package/schema/notification.model.js +33 -0
- package/schema/planoCompliance.model.js +62 -0
- package/schema/planoCrestLog.model.js +18 -0
- package/schema/planoMapping.model.js +56 -0
- package/schema/planoProductCategoryDetails.model.js +33 -0
- package/schema/planoProductDetail.model.js +63 -0
- package/schema/planoQrConversionRequest.model.js +61 -0
- package/schema/planoStaticData.model.js +18 -0
- package/schema/planoTaskCompliance.model.js +107 -0
- package/schema/planoVmDetail.model.js +63 -0
- package/schema/planogram.model.js +66 -0
- package/schema/processedchecklist.js +45 -3
- package/schema/processedchecklistconfig.js +76 -1
- package/schema/revopConfig.model.js +19 -0
- package/schema/store.model.js +58 -0
- package/schema/storeAudit.model.js +1 -1
- package/schema/storeEmpDetection.model.js +1 -1
- package/schema/storeFixture.model.js +206 -0
- package/schema/storeLayout.model.js +66 -0
- package/schema/streaming.model.js +29 -0
- package/schema/suspiciousActivity.model.js +54 -0
- package/schema/taskAssign.model.js +87 -71
- package/schema/taskConfig.model.js +115 -106
- package/schema/taskProcessed.model.js +245 -194
- package/schema/taskProcessedConfig.model.js +128 -108
- package/schema/taskQuestion.model.js +46 -43
- package/schema/traxApprover.model.js +35 -31
- package/schema/traxAuditData.model.js +3 -0
- package/schema/user.model.js +16 -1
- package/schema/userAudit.model.js +1 -1
- package/schema/userEmpDetection.model.js +4 -2
- package/schema/vmType.model.js +24 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const emailersSchema = new mongoose.Schema({
|
|
4
|
+
clientId: {
|
|
5
|
+
type: String,
|
|
6
|
+
required:true
|
|
7
|
+
},
|
|
8
|
+
fromDate: {
|
|
9
|
+
type: String,
|
|
10
|
+
},
|
|
11
|
+
toDate: {
|
|
12
|
+
type: String,
|
|
13
|
+
},
|
|
14
|
+
templateType: {
|
|
15
|
+
type: String,
|
|
16
|
+
},
|
|
17
|
+
status: {
|
|
18
|
+
type: String,
|
|
19
|
+
enum: ['open','inprogress','completed'],
|
|
20
|
+
default:'open'
|
|
21
|
+
},
|
|
22
|
+
createdAt: {
|
|
23
|
+
type: Date
|
|
24
|
+
},
|
|
25
|
+
dateISO: {
|
|
26
|
+
type: Date
|
|
27
|
+
},
|
|
28
|
+
userEmail: {
|
|
29
|
+
type: String,
|
|
30
|
+
},
|
|
31
|
+
userName: {
|
|
32
|
+
type: String,
|
|
33
|
+
},
|
|
34
|
+
storeIds: {
|
|
35
|
+
type: Array,
|
|
36
|
+
default: [],
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
strict: true,
|
|
41
|
+
versionKey: false,
|
|
42
|
+
timestamps: true,
|
|
43
|
+
},
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
export default mongoose.model( 'emailers', emailersSchema);
|
|
@@ -16,9 +16,12 @@ const empDetectionOutputSchema = new mongoose.Schema( {
|
|
|
16
16
|
storeId: {
|
|
17
17
|
type: String,
|
|
18
18
|
},
|
|
19
|
+
zoneName:{
|
|
20
|
+
type: String,
|
|
21
|
+
},
|
|
19
22
|
moduleType:{
|
|
20
23
|
type:String,
|
|
21
|
-
enum:["mobile-detection", "uniform-detection"]
|
|
24
|
+
enum:["mobile-detection", "uniform-detection", "hygiene","open-time","close-time"]
|
|
22
25
|
},
|
|
23
26
|
totalCount: {
|
|
24
27
|
type: Number,
|
|
@@ -7,13 +7,13 @@ const externalParameter = new mongoose.Schema(
|
|
|
7
7
|
trim: true,
|
|
8
8
|
required: true,
|
|
9
9
|
},
|
|
10
|
-
productName:{
|
|
10
|
+
productName: {
|
|
11
11
|
type: String,
|
|
12
|
-
required:true
|
|
12
|
+
required: true
|
|
13
13
|
},
|
|
14
|
-
zoneName:{
|
|
14
|
+
zoneName: {
|
|
15
15
|
type: String,
|
|
16
|
-
required:true
|
|
16
|
+
required: true
|
|
17
17
|
},
|
|
18
18
|
clientId: {
|
|
19
19
|
type: String,
|
|
@@ -181,14 +181,53 @@ const externalParameter = new mongoose.Schema(
|
|
|
181
181
|
default: false
|
|
182
182
|
},
|
|
183
183
|
isAudit: {
|
|
184
|
-
type:Boolean,
|
|
185
|
-
default:true
|
|
184
|
+
type: Boolean,
|
|
185
|
+
default: true
|
|
186
|
+
},
|
|
187
|
+
isForceCombine: {
|
|
188
|
+
type: Boolean,
|
|
189
|
+
default: false
|
|
186
190
|
},
|
|
187
|
-
|
|
191
|
+
reautomationStage: {
|
|
188
192
|
type: Boolean,
|
|
189
|
-
default:false
|
|
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
|
+
}
|
|
190
228
|
}
|
|
191
229
|
|
|
230
|
+
|
|
192
231
|
},
|
|
193
232
|
{
|
|
194
233
|
strict: true,
|
|
@@ -197,6 +236,6 @@ const externalParameter = new mongoose.Schema(
|
|
|
197
236
|
}
|
|
198
237
|
);
|
|
199
238
|
|
|
200
|
-
externalParameter.index({ storeId: 1, zoneName:1 });
|
|
239
|
+
externalParameter.index({ storeId: 1, zoneName: 1 });
|
|
201
240
|
|
|
202
241
|
export default mongoose.model("externalParameter", externalParameter, "externalParameter");
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const fixtureConfigSchema = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
clientId: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: true,
|
|
8
|
+
},
|
|
9
|
+
fixtureCategory: {
|
|
10
|
+
type: String,
|
|
11
|
+
},
|
|
12
|
+
fixtureType: {
|
|
13
|
+
type: String,
|
|
14
|
+
enum: [ 'wall', 'floor' ],
|
|
15
|
+
},
|
|
16
|
+
fixtureName: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: true,
|
|
19
|
+
},
|
|
20
|
+
description: {
|
|
21
|
+
type: String,
|
|
22
|
+
},
|
|
23
|
+
fixtureLength: {
|
|
24
|
+
value: {
|
|
25
|
+
type: Number,
|
|
26
|
+
default: 0,
|
|
27
|
+
},
|
|
28
|
+
unit: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: '',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
fixtureWidth: {
|
|
34
|
+
value: {
|
|
35
|
+
type: Number,
|
|
36
|
+
default: 0,
|
|
37
|
+
},
|
|
38
|
+
unit: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: '',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
fixtureStaticLength: {
|
|
44
|
+
value: {
|
|
45
|
+
type: Number,
|
|
46
|
+
default: 0,
|
|
47
|
+
},
|
|
48
|
+
unit: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: '',
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
fixtureStaticWidth: {
|
|
54
|
+
value: {
|
|
55
|
+
type: Number,
|
|
56
|
+
default: 0,
|
|
57
|
+
},
|
|
58
|
+
unit: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: '',
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
shelfConfig: [ {
|
|
64
|
+
shelfNumber: {
|
|
65
|
+
type: Number,
|
|
66
|
+
required: true,
|
|
67
|
+
},
|
|
68
|
+
shelfType: {
|
|
69
|
+
type: String,
|
|
70
|
+
enum: ['shelf', 'tray'],
|
|
71
|
+
required: true,
|
|
72
|
+
},
|
|
73
|
+
productPerShelf: {
|
|
74
|
+
type: Number,
|
|
75
|
+
default: 0,
|
|
76
|
+
},
|
|
77
|
+
trayRows: {
|
|
78
|
+
type: Number,
|
|
79
|
+
default: 0,
|
|
80
|
+
},
|
|
81
|
+
label: {
|
|
82
|
+
type: String,
|
|
83
|
+
default: '',
|
|
84
|
+
},
|
|
85
|
+
productBrandName: {
|
|
86
|
+
type: Array,
|
|
87
|
+
},
|
|
88
|
+
productSubBrandName: {
|
|
89
|
+
type: Array,
|
|
90
|
+
},
|
|
91
|
+
productCategory:{
|
|
92
|
+
type:Array
|
|
93
|
+
},
|
|
94
|
+
productSubCategory:{
|
|
95
|
+
type:Array
|
|
96
|
+
},
|
|
97
|
+
zone: {
|
|
98
|
+
type: String,
|
|
99
|
+
},
|
|
100
|
+
} ],
|
|
101
|
+
vmConfig: [
|
|
102
|
+
{
|
|
103
|
+
vmId: {
|
|
104
|
+
type: mongoose.Types.ObjectId,
|
|
105
|
+
},
|
|
106
|
+
startYPosition: {
|
|
107
|
+
type: Number,
|
|
108
|
+
},
|
|
109
|
+
endYPosition: {
|
|
110
|
+
type: Number,
|
|
111
|
+
},
|
|
112
|
+
xZone: {
|
|
113
|
+
type: String,
|
|
114
|
+
},
|
|
115
|
+
yZone: {
|
|
116
|
+
type: String,
|
|
117
|
+
},
|
|
118
|
+
position: {
|
|
119
|
+
type: String,
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
header: {
|
|
124
|
+
height: {
|
|
125
|
+
value: {
|
|
126
|
+
type: Number,
|
|
127
|
+
default: 0,
|
|
128
|
+
},
|
|
129
|
+
unit: {
|
|
130
|
+
type: String,
|
|
131
|
+
default: '',
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
label: {
|
|
135
|
+
type: String,
|
|
136
|
+
},
|
|
137
|
+
isEnabled: {
|
|
138
|
+
type: Boolean,
|
|
139
|
+
default: true,
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
footer: {
|
|
143
|
+
height: {
|
|
144
|
+
value: {
|
|
145
|
+
type: Number,
|
|
146
|
+
default: 0,
|
|
147
|
+
},
|
|
148
|
+
unit: {
|
|
149
|
+
type: String,
|
|
150
|
+
default: '',
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
label: {
|
|
154
|
+
type: String,
|
|
155
|
+
},
|
|
156
|
+
isEnabled: {
|
|
157
|
+
type: Boolean,
|
|
158
|
+
default: true,
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
isBodyEnabled: {
|
|
162
|
+
type: Boolean,
|
|
163
|
+
default: true,
|
|
164
|
+
},
|
|
165
|
+
productResolutionLevel: {
|
|
166
|
+
type: String,
|
|
167
|
+
enum: [ 'L1', 'L2', 'L3', 'L4' ],
|
|
168
|
+
},
|
|
169
|
+
fixtureLibraryId:{
|
|
170
|
+
type: mongoose.Types.ObjectId,
|
|
171
|
+
required: true,
|
|
172
|
+
},
|
|
173
|
+
fixtureCapacity: {
|
|
174
|
+
type: Number,
|
|
175
|
+
default: 0,
|
|
176
|
+
},
|
|
177
|
+
productBrandName: {
|
|
178
|
+
type: Array,
|
|
179
|
+
},
|
|
180
|
+
productCategory:{
|
|
181
|
+
type:Array
|
|
182
|
+
},
|
|
183
|
+
productSubCategory:{
|
|
184
|
+
type:Array
|
|
185
|
+
},
|
|
186
|
+
status: {
|
|
187
|
+
type: String,
|
|
188
|
+
enum: [ 'draft', 'complete' ],
|
|
189
|
+
default: 'draft',
|
|
190
|
+
},
|
|
191
|
+
crestMapKey: {
|
|
192
|
+
type: String,
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
strict: true,
|
|
197
|
+
versionKey: false,
|
|
198
|
+
timestamps: true,
|
|
199
|
+
},
|
|
200
|
+
);
|
|
201
|
+
|
|
202
|
+
export default mongoose.model( 'fixtureConfig', fixtureConfigSchema );
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const fixtureLibrarySchema = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
clientId: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: true,
|
|
8
|
+
},
|
|
9
|
+
fixtureCategory: {
|
|
10
|
+
type: String,
|
|
11
|
+
},
|
|
12
|
+
fixtureType: {
|
|
13
|
+
type: String,
|
|
14
|
+
enum: ['wall', 'floor'],
|
|
15
|
+
},
|
|
16
|
+
fixtureLength: {
|
|
17
|
+
value: {
|
|
18
|
+
type: Number,
|
|
19
|
+
default: 0,
|
|
20
|
+
},
|
|
21
|
+
unit: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: 'ft',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
fixtureWidth: {
|
|
27
|
+
value: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: 0,
|
|
30
|
+
},
|
|
31
|
+
unit: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: 'ft',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
fixtureStaticLength: {
|
|
37
|
+
value: {
|
|
38
|
+
type: Number,
|
|
39
|
+
default: 0,
|
|
40
|
+
},
|
|
41
|
+
unit: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: '',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
fixtureStaticWidth: {
|
|
47
|
+
value: {
|
|
48
|
+
type: Number,
|
|
49
|
+
default: 0,
|
|
50
|
+
},
|
|
51
|
+
unit: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: '',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
header: {
|
|
57
|
+
isEnabled: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: true,
|
|
60
|
+
},
|
|
61
|
+
height: {
|
|
62
|
+
value: {
|
|
63
|
+
type: Number,
|
|
64
|
+
default: 0,
|
|
65
|
+
},
|
|
66
|
+
unit: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: 'mm',
|
|
69
|
+
},
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
footer: {
|
|
73
|
+
isEnabled: {
|
|
74
|
+
type: Boolean,
|
|
75
|
+
default: true,
|
|
76
|
+
},
|
|
77
|
+
height: {
|
|
78
|
+
value: {
|
|
79
|
+
type: Number,
|
|
80
|
+
default: 0,
|
|
81
|
+
},
|
|
82
|
+
unit: {
|
|
83
|
+
type: String,
|
|
84
|
+
default: 'mm',
|
|
85
|
+
},
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
isBodyEnabled: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: true,
|
|
91
|
+
},
|
|
92
|
+
fixtureCapacity: {
|
|
93
|
+
type: Number,
|
|
94
|
+
default: 0,
|
|
95
|
+
},
|
|
96
|
+
status: {
|
|
97
|
+
type: String,
|
|
98
|
+
enum: ['draft', 'complete'],
|
|
99
|
+
default: 'draft',
|
|
100
|
+
},
|
|
101
|
+
shelfConfig: [
|
|
102
|
+
{
|
|
103
|
+
shelfNumber: {
|
|
104
|
+
type: Number,
|
|
105
|
+
required: true,
|
|
106
|
+
},
|
|
107
|
+
shelfType: {
|
|
108
|
+
type: String,
|
|
109
|
+
enum: ['shelf', 'tray'],
|
|
110
|
+
},
|
|
111
|
+
zone: {
|
|
112
|
+
type: String,
|
|
113
|
+
},
|
|
114
|
+
productPerShelf: {
|
|
115
|
+
type: Number,
|
|
116
|
+
default: 0,
|
|
117
|
+
},
|
|
118
|
+
trayRows: {
|
|
119
|
+
type: Number,
|
|
120
|
+
default: 0,
|
|
121
|
+
},
|
|
122
|
+
label: {
|
|
123
|
+
type: String,
|
|
124
|
+
default: '',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
vmConfig: [
|
|
129
|
+
{
|
|
130
|
+
vmNumber: {
|
|
131
|
+
type: Number,
|
|
132
|
+
},
|
|
133
|
+
vmHeightmm: {
|
|
134
|
+
type: Number,
|
|
135
|
+
},
|
|
136
|
+
vmWidthmm: {
|
|
137
|
+
type: Number,
|
|
138
|
+
},
|
|
139
|
+
startShelf: {
|
|
140
|
+
type: Number,
|
|
141
|
+
},
|
|
142
|
+
endShelf: {
|
|
143
|
+
type: Number,
|
|
144
|
+
},
|
|
145
|
+
zone: {
|
|
146
|
+
type: String,
|
|
147
|
+
},
|
|
148
|
+
position: {
|
|
149
|
+
type: String,
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
fixtureLibCode:{
|
|
154
|
+
type:String
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
strict: true,
|
|
159
|
+
versionKey: false,
|
|
160
|
+
timestamps: true,
|
|
161
|
+
},
|
|
162
|
+
);
|
|
163
|
+
|
|
164
|
+
export default mongoose.model( 'fixtureLibrary', fixtureLibrarySchema );
|
|
165
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const fixtureShelfSchema = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
clientId: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: true,
|
|
8
|
+
},
|
|
9
|
+
storeName: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: true,
|
|
12
|
+
},
|
|
13
|
+
storeId: {
|
|
14
|
+
type: String,
|
|
15
|
+
required: true,
|
|
16
|
+
},
|
|
17
|
+
planoId: {
|
|
18
|
+
type: mongoose.Types.ObjectId,
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
floorId: {
|
|
22
|
+
type: mongoose.Types.ObjectId,
|
|
23
|
+
required: true,
|
|
24
|
+
},
|
|
25
|
+
fixtureId: {
|
|
26
|
+
type: mongoose.Types.ObjectId,
|
|
27
|
+
required: true,
|
|
28
|
+
},
|
|
29
|
+
shelfNumber: {
|
|
30
|
+
type: Number,
|
|
31
|
+
required: true,
|
|
32
|
+
},
|
|
33
|
+
productBrandName: {
|
|
34
|
+
type: Array,
|
|
35
|
+
},
|
|
36
|
+
productCategory: {
|
|
37
|
+
type: Array
|
|
38
|
+
},
|
|
39
|
+
productSubCategory: {
|
|
40
|
+
type: Array
|
|
41
|
+
},
|
|
42
|
+
zone: {
|
|
43
|
+
type: String
|
|
44
|
+
},
|
|
45
|
+
rfId: {
|
|
46
|
+
type: String
|
|
47
|
+
},
|
|
48
|
+
shelfType: {
|
|
49
|
+
type: String,
|
|
50
|
+
enum: ['shelf', 'tray'],
|
|
51
|
+
},
|
|
52
|
+
productPerShelf: {
|
|
53
|
+
type: Number,
|
|
54
|
+
default: 0,
|
|
55
|
+
},
|
|
56
|
+
trayRows: {
|
|
57
|
+
type: Number,
|
|
58
|
+
default: 0,
|
|
59
|
+
},
|
|
60
|
+
label: {
|
|
61
|
+
type: String,
|
|
62
|
+
default: '',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
strict: true,
|
|
67
|
+
versionKey: false,
|
|
68
|
+
timestamps: true,
|
|
69
|
+
},
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
export default mongoose.model('fixtureShelf', fixtureShelfSchema);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const loginAttempts = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
email: {
|
|
6
|
+
type: String,
|
|
7
|
+
},
|
|
8
|
+
maxAttempt: {
|
|
9
|
+
type:Number,
|
|
10
|
+
default:0
|
|
11
|
+
},
|
|
12
|
+
lockTime:{
|
|
13
|
+
type: Number,
|
|
14
|
+
default:30
|
|
15
|
+
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
strict: true,
|
|
20
|
+
versionKey: false,
|
|
21
|
+
timestamps: true,
|
|
22
|
+
},
|
|
23
|
+
);
|
|
24
|
+
loginAttempts.index( { createdAt: 1 }, { expires: '30m' })
|
|
25
|
+
|
|
26
|
+
export default mongoose.model( 'loginAttempts', loginAttempts, 'loginAttempts');
|
|
@@ -10,10 +10,20 @@ const nobSchema=new mongoose.Schema( {
|
|
|
10
10
|
type: String,
|
|
11
11
|
trim: true,
|
|
12
12
|
},
|
|
13
|
+
storeName:{
|
|
14
|
+
type: String
|
|
15
|
+
},
|
|
16
|
+
storeCode:{
|
|
17
|
+
type: String,
|
|
18
|
+
trim: true,
|
|
19
|
+
},
|
|
13
20
|
nobDate: {
|
|
14
21
|
type: Date,
|
|
15
22
|
required: true,
|
|
16
23
|
},
|
|
24
|
+
dateString:{
|
|
25
|
+
type: String,
|
|
26
|
+
},
|
|
17
27
|
nobCount: {
|
|
18
28
|
type: Number,
|
|
19
29
|
trim: true,
|
|
@@ -22,10 +32,6 @@ const nobSchema=new mongoose.Schema( {
|
|
|
22
32
|
type: Number,
|
|
23
33
|
default: 0.0,
|
|
24
34
|
},
|
|
25
|
-
storeCode:{
|
|
26
|
-
type: String,
|
|
27
|
-
trim: true,
|
|
28
|
-
}
|
|
29
35
|
}, {
|
|
30
36
|
strict: true,
|
|
31
37
|
versionKey: false,
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const notification = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
userId: {
|
|
6
|
+
type: mongoose.Types.ObjectId,
|
|
7
|
+
},
|
|
8
|
+
captureTime: {
|
|
9
|
+
type:String,
|
|
10
|
+
},
|
|
11
|
+
storeId:{
|
|
12
|
+
type: String,
|
|
13
|
+
},
|
|
14
|
+
storeName:{
|
|
15
|
+
type: String,
|
|
16
|
+
},
|
|
17
|
+
status:{
|
|
18
|
+
type: String,
|
|
19
|
+
default:"unsend"
|
|
20
|
+
},
|
|
21
|
+
slotNo:{
|
|
22
|
+
type: Number,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
strict: true,
|
|
27
|
+
versionKey: false,
|
|
28
|
+
timestamps: true,
|
|
29
|
+
},
|
|
30
|
+
);
|
|
31
|
+
notification.index( { createdAt: 1 }, { expires: '1d' })
|
|
32
|
+
|
|
33
|
+
export default mongoose.model( 'notification', notification, 'notification');
|