tango-api-schema 2.2.161 → 2.2.163
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 +8 -0
- package/package.json +2 -3
- package/schema/checklistconfig.js +1 -1
- package/schema/externalParameter.model.js +1 -33
- package/schema/fixtureConfig.model.js +149 -16
- package/schema/fixtureLibrary.model.js +165 -0
- package/schema/fixtureShelf.model.js +66 -57
- package/schema/planoProductCategoryDetails.model.js +26 -0
- package/schema/planoProductDetail.model.js +1 -18
- package/schema/planoStaticData.model.js +1 -1
- package/schema/planoTaskCompliance.model.js +333 -14
- package/schema/planoVmDetail.model.js +63 -0
- package/schema/planogram.model.js +4 -0
- package/schema/processedchecklist.js +1 -1
- package/schema/processedchecklistconfig.js +1 -1
- package/schema/storeFixture.model.js +100 -56
- package/schema/taskProcessed.model.js +3 -0
- package/schema/vmType.model.js +24 -0
package/index.js
CHANGED
|
@@ -76,6 +76,7 @@ import planogramModel from "./schema/planogram.model.js";
|
|
|
76
76
|
import emailersModel from "./schema/emailers.model.js";
|
|
77
77
|
import planoMappingModel from './schema/planoMapping.model.js';
|
|
78
78
|
import planoProductModel from './schema/planoProductDetail.model.js';
|
|
79
|
+
import planoVmModel from './schema/planoVmDetail.model.js';
|
|
79
80
|
import planoComplianceModel from './schema/planoCompliance.model.js';
|
|
80
81
|
import storeFixtureModel from './schema/storeFixture.model.js';
|
|
81
82
|
import fixtureConfigModel from './schema/fixtureConfig.model.js';
|
|
@@ -88,6 +89,9 @@ import auditConfigModel from "./schema/auditConfig.model.js";
|
|
|
88
89
|
import revopConfigModel from "./schema/revopConfig.model.js";
|
|
89
90
|
import planoCrestLogModel from './schema/planoCrestLog.model.js';
|
|
90
91
|
import countryCurrencyModel from './schema/countryCurrency.model.js';
|
|
92
|
+
import fixtureLibraryModel from './schema/fixtureLibrary.model.js';
|
|
93
|
+
import vmTypeModel from "./schema/vmType.model.js";
|
|
94
|
+
import planoProductCategoryModel from './schema/planoProductCategoryDetails.model.js'
|
|
91
95
|
import streamingModel from './schema/streaming.model.js';
|
|
92
96
|
import loginAttempt from "./schema/loginAttempt.model.js";
|
|
93
97
|
import notification from "./schema/notification.model.js";
|
|
@@ -184,6 +188,10 @@ export default {
|
|
|
184
188
|
revopConfigModel,
|
|
185
189
|
planoCrestLogModel,
|
|
186
190
|
countryCurrencyModel,
|
|
191
|
+
fixtureLibraryModel,
|
|
192
|
+
planoVmModel,
|
|
193
|
+
vmTypeModel,
|
|
194
|
+
planoProductCategoryModel,
|
|
187
195
|
streamingModel,
|
|
188
196
|
loginAttempt,
|
|
189
197
|
notification
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tango-api-schema",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.163",
|
|
4
4
|
"description": "tangoEye model schema",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
"homepage": "https://bitbucket.org/tangoeye-retail/tango-api-schema#readme",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"express": "^4.21.1",
|
|
23
|
-
"mongoose": "^7.5.3"
|
|
24
|
-
"tango-api-schema": "^2.2.130"
|
|
23
|
+
"mongoose": "^7.5.3"
|
|
25
24
|
}
|
|
26
25
|
}
|
|
@@ -131,7 +131,7 @@ const checklistconfigSchema = new mongoose.Schema({
|
|
|
131
131
|
checkListType:{
|
|
132
132
|
type:String,
|
|
133
133
|
default:"custom",
|
|
134
|
-
enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle",'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum','suspiciousactivity','boxalert','suspiciousfootfall','drinking','bagdetection','inventorycount','carsattended','numberplateinfo','vehicle_check_in'
|
|
134
|
+
enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle",'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum','suspiciousactivity','boxalert','suspiciousfootfall','drinking','bagdetection','inventorycount','carsattended','numberplateinfo','vehicle_check_in']
|
|
135
135
|
},
|
|
136
136
|
createdAt: {
|
|
137
137
|
type: Date,
|
|
@@ -224,39 +224,7 @@ const externalParameter = new mongoose.Schema(
|
|
|
224
224
|
dynamicFrameRate:{
|
|
225
225
|
type:Boolean,
|
|
226
226
|
default:true
|
|
227
|
-
}
|
|
228
|
-
CheckForEmployee: {
|
|
229
|
-
type: Boolean,
|
|
230
|
-
default: false
|
|
231
|
-
},
|
|
232
|
-
CheckUniqueCustomers: {
|
|
233
|
-
type: Boolean,
|
|
234
|
-
default: false
|
|
235
|
-
},
|
|
236
|
-
AuditCustomers: {
|
|
237
|
-
type: Boolean,
|
|
238
|
-
default: false
|
|
239
|
-
},
|
|
240
|
-
EnableTesting: {
|
|
241
|
-
type: Boolean,
|
|
242
|
-
default: true
|
|
243
|
-
},
|
|
244
|
-
TimestampLimit: {
|
|
245
|
-
type: String,
|
|
246
|
-
default: "2"
|
|
247
|
-
},
|
|
248
|
-
DecisionThreshold: {
|
|
249
|
-
type: Boolean,
|
|
250
|
-
default: false
|
|
251
|
-
},
|
|
252
|
-
StoreProcessingStatus: {
|
|
253
|
-
type: String,
|
|
254
|
-
default: "EOD"
|
|
255
|
-
},
|
|
256
|
-
LiveTimeGap: {
|
|
257
|
-
type: String,
|
|
258
|
-
default: "30"
|
|
259
|
-
},
|
|
227
|
+
}
|
|
260
228
|
}
|
|
261
229
|
|
|
262
230
|
|
|
@@ -13,53 +13,186 @@ const fixtureConfigSchema = new mongoose.Schema(
|
|
|
13
13
|
type: String,
|
|
14
14
|
enum: [ 'wall', 'floor' ],
|
|
15
15
|
},
|
|
16
|
-
|
|
16
|
+
fixtureName: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: true,
|
|
19
|
+
},
|
|
20
|
+
description: {
|
|
21
|
+
type: String,
|
|
22
|
+
},
|
|
23
|
+
fixtureLength: {
|
|
17
24
|
value: {
|
|
18
25
|
type: Number,
|
|
26
|
+
default: 0,
|
|
19
27
|
},
|
|
20
28
|
unit: {
|
|
21
29
|
type: String,
|
|
30
|
+
default: '',
|
|
22
31
|
},
|
|
23
32
|
},
|
|
24
|
-
|
|
33
|
+
fixtureWidth: {
|
|
25
34
|
value: {
|
|
26
35
|
type: Number,
|
|
36
|
+
default: 0,
|
|
27
37
|
},
|
|
28
38
|
unit: {
|
|
29
39
|
type: String,
|
|
40
|
+
default: '',
|
|
30
41
|
},
|
|
31
42
|
},
|
|
32
|
-
|
|
43
|
+
fixtureStaticLength: {
|
|
33
44
|
value: {
|
|
34
45
|
type: Number,
|
|
46
|
+
default: 0,
|
|
35
47
|
},
|
|
36
48
|
unit: {
|
|
37
49
|
type: String,
|
|
50
|
+
default: '',
|
|
38
51
|
},
|
|
39
52
|
},
|
|
40
|
-
|
|
41
|
-
|
|
53
|
+
fixtureStaticWidth: {
|
|
54
|
+
value: {
|
|
55
|
+
type: Number,
|
|
56
|
+
default: 0,
|
|
57
|
+
},
|
|
58
|
+
unit: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: '',
|
|
61
|
+
},
|
|
42
62
|
},
|
|
43
|
-
|
|
44
|
-
|
|
63
|
+
shelfConfig: [ {
|
|
64
|
+
shelfNumber: {
|
|
65
|
+
type: Number,
|
|
66
|
+
required: true,
|
|
67
|
+
},
|
|
68
|
+
shelfType: {
|
|
69
|
+
type: String,
|
|
70
|
+
enum: ['shelf', 'tray'],
|
|
71
|
+
},
|
|
72
|
+
productPerShelf: {
|
|
73
|
+
type: Number,
|
|
74
|
+
default: 0,
|
|
75
|
+
},
|
|
76
|
+
trayRows: {
|
|
77
|
+
type: Number,
|
|
78
|
+
default: 0,
|
|
79
|
+
},
|
|
80
|
+
label: {
|
|
81
|
+
type: String,
|
|
82
|
+
default: '',
|
|
83
|
+
},
|
|
84
|
+
productBrandName: {
|
|
85
|
+
type: Array,
|
|
86
|
+
},
|
|
87
|
+
productSubBrandName: {
|
|
88
|
+
type: Array,
|
|
89
|
+
},
|
|
90
|
+
productCategory:{
|
|
91
|
+
type:Array
|
|
92
|
+
},
|
|
93
|
+
productSubCategory:{
|
|
94
|
+
type:Array
|
|
95
|
+
},
|
|
96
|
+
zone: {
|
|
97
|
+
type: String,
|
|
98
|
+
},
|
|
99
|
+
} ],
|
|
100
|
+
vmConfig: [
|
|
101
|
+
{
|
|
102
|
+
vmId: {
|
|
103
|
+
type: mongoose.Types.ObjectId,
|
|
104
|
+
},
|
|
105
|
+
startYPosition: {
|
|
106
|
+
type: Number,
|
|
107
|
+
},
|
|
108
|
+
endYPosition: {
|
|
109
|
+
type: Number,
|
|
110
|
+
},
|
|
111
|
+
xZone: {
|
|
112
|
+
type: String,
|
|
113
|
+
},
|
|
114
|
+
yZone: {
|
|
115
|
+
type: String,
|
|
116
|
+
},
|
|
117
|
+
position: {
|
|
118
|
+
type: String,
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
header: {
|
|
123
|
+
height: {
|
|
124
|
+
value: {
|
|
125
|
+
type: Number,
|
|
126
|
+
default: 0,
|
|
127
|
+
},
|
|
128
|
+
unit: {
|
|
129
|
+
type: String,
|
|
130
|
+
default: '',
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
label: {
|
|
134
|
+
type: String,
|
|
135
|
+
},
|
|
136
|
+
isEnabled: {
|
|
137
|
+
type: Boolean,
|
|
138
|
+
default: true,
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
footer: {
|
|
142
|
+
height: {
|
|
143
|
+
value: {
|
|
144
|
+
type: Number,
|
|
145
|
+
default: 0,
|
|
146
|
+
},
|
|
147
|
+
unit: {
|
|
148
|
+
type: String,
|
|
149
|
+
default: '',
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
label: {
|
|
153
|
+
type: String,
|
|
154
|
+
},
|
|
155
|
+
isEnabled: {
|
|
156
|
+
type: Boolean,
|
|
157
|
+
default: true,
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
isBodyEnabled: {
|
|
161
|
+
type: Boolean,
|
|
162
|
+
default: true,
|
|
163
|
+
},
|
|
164
|
+
productResolutionLevel: {
|
|
165
|
+
type: String,
|
|
166
|
+
enum: [ 'L1', 'L2', 'L3', 'L4' ],
|
|
167
|
+
},
|
|
168
|
+
fixtureLibraryId:{
|
|
169
|
+
type: mongoose.Types.ObjectId,
|
|
170
|
+
required: true,
|
|
45
171
|
},
|
|
46
172
|
fixtureCapacity: {
|
|
47
173
|
type: Number,
|
|
174
|
+
default: 0,
|
|
48
175
|
},
|
|
49
|
-
|
|
176
|
+
productBrandName: {
|
|
50
177
|
type: Array,
|
|
51
178
|
},
|
|
52
|
-
|
|
53
|
-
|
|
179
|
+
productCategory:{
|
|
180
|
+
type:Array
|
|
54
181
|
},
|
|
55
|
-
|
|
56
|
-
|
|
182
|
+
productSubCategory:{
|
|
183
|
+
type:Array
|
|
57
184
|
},
|
|
58
|
-
|
|
59
|
-
type:
|
|
185
|
+
status: {
|
|
186
|
+
type: String,
|
|
187
|
+
enum: [ 'draft', 'complete' ],
|
|
188
|
+
default: 'draft',
|
|
60
189
|
},
|
|
61
|
-
|
|
62
|
-
type:
|
|
190
|
+
crestMapKey: {
|
|
191
|
+
type: String,
|
|
192
|
+
},
|
|
193
|
+
templateIndex: {
|
|
194
|
+
type: Number,
|
|
195
|
+
default: 1,
|
|
63
196
|
},
|
|
64
197
|
},
|
|
65
198
|
{
|
|
@@ -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: 1524,
|
|
40
|
+
},
|
|
41
|
+
unit: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: 'mm',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
fixtureStaticWidth: {
|
|
47
|
+
value: {
|
|
48
|
+
type: Number,
|
|
49
|
+
default: 1220,
|
|
50
|
+
},
|
|
51
|
+
unit: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: 'mm',
|
|
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
|
+
|
|
@@ -1,63 +1,72 @@
|
|
|
1
1
|
import mongoose from 'mongoose';
|
|
2
2
|
|
|
3
3
|
const fixtureShelfSchema = new mongoose.Schema(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
shelfOrder: {
|
|
34
|
-
type: String,
|
|
35
|
-
enum: [ 'LTR', 'RTL' ],
|
|
36
|
-
// LTR - Left to Right, RTL - Right to Left
|
|
37
|
-
required: true,
|
|
38
|
-
},
|
|
39
|
-
shelfCapacity: {
|
|
40
|
-
type: Number,
|
|
41
|
-
required: true,
|
|
42
|
-
},
|
|
43
|
-
sectionName:{
|
|
44
|
-
type: String
|
|
45
|
-
},
|
|
46
|
-
sectionZone:{
|
|
47
|
-
type: String
|
|
48
|
-
},
|
|
49
|
-
rfId:{
|
|
50
|
-
type:String
|
|
51
|
-
},
|
|
52
|
-
shelfSplitup: {
|
|
53
|
-
type: Number,
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
strict: true,
|
|
58
|
-
versionKey: false,
|
|
59
|
-
timestamps: true,
|
|
4
|
+
{
|
|
5
|
+
clientId: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: true,
|
|
60
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
|
+
},
|
|
61
70
|
);
|
|
62
71
|
|
|
63
|
-
export default mongoose.model(
|
|
72
|
+
export default mongoose.model('fixtureShelf', fixtureShelfSchema);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const planoProductCategorySchema = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
clientId: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: true,
|
|
8
|
+
},
|
|
9
|
+
brandName:{
|
|
10
|
+
type:String
|
|
11
|
+
},
|
|
12
|
+
category:{
|
|
13
|
+
type:Array
|
|
14
|
+
},
|
|
15
|
+
subCategory:{
|
|
16
|
+
type:Array
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
strict: true,
|
|
21
|
+
versionKey: false,
|
|
22
|
+
timestamps: true,
|
|
23
|
+
},
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
export default mongoose.model( 'planoProductCategory', planoProductCategorySchema );
|
|
@@ -10,10 +10,6 @@ const planoProductDetailSchema = new mongoose.Schema(
|
|
|
10
10
|
type: String,
|
|
11
11
|
required: true,
|
|
12
12
|
},
|
|
13
|
-
type: {
|
|
14
|
-
type: String,
|
|
15
|
-
enum: [ 'product', 'vm' ],
|
|
16
|
-
},
|
|
17
13
|
productName: {
|
|
18
14
|
type: String,
|
|
19
15
|
},
|
|
@@ -55,20 +51,7 @@ const planoProductDetailSchema = new mongoose.Schema(
|
|
|
55
51
|
},
|
|
56
52
|
productImageUrl: {
|
|
57
53
|
type: String,
|
|
58
|
-
}
|
|
59
|
-
startYPosition: {
|
|
60
|
-
type: String,
|
|
61
|
-
},
|
|
62
|
-
endYPosition: {
|
|
63
|
-
type: String,
|
|
64
|
-
},
|
|
65
|
-
xZone:{
|
|
66
|
-
type: String
|
|
67
|
-
},
|
|
68
|
-
fixtureConfigId: {
|
|
69
|
-
type: mongoose.Types.ObjectId,
|
|
70
|
-
},
|
|
71
|
-
|
|
54
|
+
}
|
|
72
55
|
},
|
|
73
56
|
{
|
|
74
57
|
strict: false,
|