tango-api-schema 2.3.15 → 2.3.17
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/build.js +24 -24
- package/index.js +215 -213
- package/package.json +27 -27
- package/schema/appVersion.js +39 -39
- package/schema/auditConfig.model.js +41 -41
- package/schema/auditUserBaseSalary.model.js +46 -46
- package/schema/binaryAudit.model.js +84 -84
- package/schema/camera.model.js +211 -211
- package/schema/checklistassignconfig.js +90 -90
- package/schema/checklistconfig.js +295 -295
- package/schema/checklistlog.js +113 -113
- package/schema/checklistquestionconfig.js +153 -153
- package/schema/client.model.js +687 -687
- package/schema/countryCurrency.model.js +17 -17
- package/schema/dailyPricing.model.js +89 -89
- package/schema/download.js +124 -124
- package/schema/emailers.model.js +45 -45
- package/schema/externalParameter.model.js +273 -273
- package/schema/eyeTestConfiguration.model.js +39 -0
- package/schema/fixtureConfig.model.js +223 -223
- package/schema/fixtureLibrary.model.js +167 -167
- package/schema/fixtureShelf.model.js +78 -78
- package/schema/liveConnection.model.js +54 -54
- package/schema/loginAttempt.model.js +31 -31
- package/schema/notification.model.js +45 -45
- package/schema/planoCrestLog.model.js +17 -17
- package/schema/planoGlobalComment.model.js +45 -45
- package/schema/planoMapping.model.js +62 -62
- package/schema/planoProductCategoryDetails.model.js +25 -25
- package/schema/planoProductDetail.model.js +63 -63
- package/schema/planoQrConversionRequest.model.js +61 -61
- package/schema/planoRevision.model.js +36 -36
- package/schema/planoStaticData.model.js +17 -17
- package/schema/planoTaskCompliance.model.js +397 -397
- package/schema/planoVmDetail.model.js +63 -63
- package/schema/planogram.model.js +66 -66
- package/schema/processedchecklist.js +256 -256
- package/schema/processedchecklistconfig.js +226 -226
- package/schema/revopConfig.model.js +19 -19
- package/schema/revopDownload.model.js +49 -49
- package/schema/runAIFeatures.js +24 -24
- package/schema/runAIRequest.js +53 -53
- package/schema/store.model.js +405 -405
- package/schema/storeFixture.model.js +228 -228
- package/schema/storeLayout.model.js +74 -74
- package/schema/streaming.model.js +29 -29
- package/schema/suspiciousActivity.model.js +54 -54
- package/schema/taskAssign.model.js +90 -90
- package/schema/taskConfig.model.js +121 -121
- package/schema/taskProcessed.model.js +257 -257
- package/schema/taskProcessedConfig.model.js +134 -134
- package/schema/templateLog.model.js +17 -17
- package/schema/user.model.js +139 -139
- package/schema/vmType.model.js +23 -23
|
@@ -1,135 +1,135 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
|
|
3
|
-
const processestaskconfigSchema = new mongoose.Schema({
|
|
4
|
-
client_id: {
|
|
5
|
-
type: String,
|
|
6
|
-
required:true
|
|
7
|
-
},
|
|
8
|
-
date_iso: {
|
|
9
|
-
type: Date,
|
|
10
|
-
},
|
|
11
|
-
date_string: {
|
|
12
|
-
type: String,
|
|
13
|
-
},
|
|
14
|
-
sourceCheckList_id: {
|
|
15
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
16
|
-
ref: 'taskConfig'
|
|
17
|
-
},
|
|
18
|
-
checkListName: {
|
|
19
|
-
type: String,
|
|
20
|
-
required:true
|
|
21
|
-
},
|
|
22
|
-
scheduleStartTime: {
|
|
23
|
-
type: String
|
|
24
|
-
},
|
|
25
|
-
scheduleEndTime: {
|
|
26
|
-
type: String
|
|
27
|
-
},
|
|
28
|
-
scheduleStartTime_iso: {
|
|
29
|
-
type: Date
|
|
30
|
-
},
|
|
31
|
-
scheduleEndTime_iso: {
|
|
32
|
-
type: Date
|
|
33
|
-
},
|
|
34
|
-
allowedOverTime: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default:false
|
|
37
|
-
},
|
|
38
|
-
allowedStoreLocation: {
|
|
39
|
-
type: Boolean,
|
|
40
|
-
default:false
|
|
41
|
-
},
|
|
42
|
-
createdBy: {
|
|
43
|
-
type: mongoose.SchemaTypes.ObjectId,
|
|
44
|
-
},
|
|
45
|
-
createdByName: {
|
|
46
|
-
type: String,
|
|
47
|
-
},
|
|
48
|
-
questionAnswers: {
|
|
49
|
-
type: Array
|
|
50
|
-
},
|
|
51
|
-
createdAt: {
|
|
52
|
-
type: Date,
|
|
53
|
-
default: Date.now
|
|
54
|
-
},
|
|
55
|
-
updatedAt: {
|
|
56
|
-
type: Date,
|
|
57
|
-
default: Date.now
|
|
58
|
-
},
|
|
59
|
-
isdeleted: {
|
|
60
|
-
type: Boolean,
|
|
61
|
-
default: false
|
|
62
|
-
},
|
|
63
|
-
questionCount: {
|
|
64
|
-
type: Number,
|
|
65
|
-
default: 0
|
|
66
|
-
},
|
|
67
|
-
storeCount: {
|
|
68
|
-
type: Number,
|
|
69
|
-
default: 0
|
|
70
|
-
},
|
|
71
|
-
publishDate: {
|
|
72
|
-
type: Date,
|
|
73
|
-
},
|
|
74
|
-
locationCount: {
|
|
75
|
-
type: Number
|
|
76
|
-
},
|
|
77
|
-
checkListType: {
|
|
78
|
-
type: String,
|
|
79
|
-
default: "task",
|
|
80
|
-
enum: ['task',"checklistTask",'cctv']
|
|
81
|
-
},
|
|
82
|
-
startTime:{
|
|
83
|
-
type:Date
|
|
84
|
-
},
|
|
85
|
-
scheduleRepeatedType: {
|
|
86
|
-
type: String,
|
|
87
|
-
default: '',
|
|
88
|
-
enum: ["daily"]
|
|
89
|
-
},
|
|
90
|
-
allowedMultiSubmit: {
|
|
91
|
-
type: Boolean,
|
|
92
|
-
default:false
|
|
93
|
-
},
|
|
94
|
-
approver:{
|
|
95
|
-
type:Array,
|
|
96
|
-
default:[]
|
|
97
|
-
},
|
|
98
|
-
checkListDescription:{
|
|
99
|
-
type: String,
|
|
100
|
-
},
|
|
101
|
-
priorityType:{
|
|
102
|
-
type:String
|
|
103
|
-
},
|
|
104
|
-
remainder:{
|
|
105
|
-
type:Array,
|
|
106
|
-
default:[]
|
|
107
|
-
},
|
|
108
|
-
restrictAttendance:{
|
|
109
|
-
type:Boolean,
|
|
110
|
-
default:false
|
|
111
|
-
},
|
|
112
|
-
coverage:{
|
|
113
|
-
type: String,
|
|
114
|
-
default: 'store',
|
|
115
|
-
enum: ["store", "user", "checklist"]
|
|
116
|
-
},
|
|
117
|
-
rawImageUpload: {
|
|
118
|
-
type: Boolean,
|
|
119
|
-
default:false
|
|
120
|
-
},
|
|
121
|
-
checkListFrom: {
|
|
122
|
-
type: String
|
|
123
|
-
},
|
|
124
|
-
zoneName: {
|
|
125
|
-
type: String
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
strict: true,
|
|
130
|
-
versionKey: false,
|
|
131
|
-
timestamps: true,
|
|
132
|
-
},
|
|
133
|
-
);
|
|
134
|
-
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const processestaskconfigSchema = new mongoose.Schema({
|
|
4
|
+
client_id: {
|
|
5
|
+
type: String,
|
|
6
|
+
required:true
|
|
7
|
+
},
|
|
8
|
+
date_iso: {
|
|
9
|
+
type: Date,
|
|
10
|
+
},
|
|
11
|
+
date_string: {
|
|
12
|
+
type: String,
|
|
13
|
+
},
|
|
14
|
+
sourceCheckList_id: {
|
|
15
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
16
|
+
ref: 'taskConfig'
|
|
17
|
+
},
|
|
18
|
+
checkListName: {
|
|
19
|
+
type: String,
|
|
20
|
+
required:true
|
|
21
|
+
},
|
|
22
|
+
scheduleStartTime: {
|
|
23
|
+
type: String
|
|
24
|
+
},
|
|
25
|
+
scheduleEndTime: {
|
|
26
|
+
type: String
|
|
27
|
+
},
|
|
28
|
+
scheduleStartTime_iso: {
|
|
29
|
+
type: Date
|
|
30
|
+
},
|
|
31
|
+
scheduleEndTime_iso: {
|
|
32
|
+
type: Date
|
|
33
|
+
},
|
|
34
|
+
allowedOverTime: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default:false
|
|
37
|
+
},
|
|
38
|
+
allowedStoreLocation: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default:false
|
|
41
|
+
},
|
|
42
|
+
createdBy: {
|
|
43
|
+
type: mongoose.SchemaTypes.ObjectId,
|
|
44
|
+
},
|
|
45
|
+
createdByName: {
|
|
46
|
+
type: String,
|
|
47
|
+
},
|
|
48
|
+
questionAnswers: {
|
|
49
|
+
type: Array
|
|
50
|
+
},
|
|
51
|
+
createdAt: {
|
|
52
|
+
type: Date,
|
|
53
|
+
default: Date.now
|
|
54
|
+
},
|
|
55
|
+
updatedAt: {
|
|
56
|
+
type: Date,
|
|
57
|
+
default: Date.now
|
|
58
|
+
},
|
|
59
|
+
isdeleted: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: false
|
|
62
|
+
},
|
|
63
|
+
questionCount: {
|
|
64
|
+
type: Number,
|
|
65
|
+
default: 0
|
|
66
|
+
},
|
|
67
|
+
storeCount: {
|
|
68
|
+
type: Number,
|
|
69
|
+
default: 0
|
|
70
|
+
},
|
|
71
|
+
publishDate: {
|
|
72
|
+
type: Date,
|
|
73
|
+
},
|
|
74
|
+
locationCount: {
|
|
75
|
+
type: Number
|
|
76
|
+
},
|
|
77
|
+
checkListType: {
|
|
78
|
+
type: String,
|
|
79
|
+
default: "task",
|
|
80
|
+
enum: ['task',"checklistTask",'cctv']
|
|
81
|
+
},
|
|
82
|
+
startTime:{
|
|
83
|
+
type:Date
|
|
84
|
+
},
|
|
85
|
+
scheduleRepeatedType: {
|
|
86
|
+
type: String,
|
|
87
|
+
default: '',
|
|
88
|
+
enum: ["daily"]
|
|
89
|
+
},
|
|
90
|
+
allowedMultiSubmit: {
|
|
91
|
+
type: Boolean,
|
|
92
|
+
default:false
|
|
93
|
+
},
|
|
94
|
+
approver:{
|
|
95
|
+
type:Array,
|
|
96
|
+
default:[]
|
|
97
|
+
},
|
|
98
|
+
checkListDescription:{
|
|
99
|
+
type: String,
|
|
100
|
+
},
|
|
101
|
+
priorityType:{
|
|
102
|
+
type:String
|
|
103
|
+
},
|
|
104
|
+
remainder:{
|
|
105
|
+
type:Array,
|
|
106
|
+
default:[]
|
|
107
|
+
},
|
|
108
|
+
restrictAttendance:{
|
|
109
|
+
type:Boolean,
|
|
110
|
+
default:false
|
|
111
|
+
},
|
|
112
|
+
coverage:{
|
|
113
|
+
type: String,
|
|
114
|
+
default: 'store',
|
|
115
|
+
enum: ["store", "user", "checklist"]
|
|
116
|
+
},
|
|
117
|
+
rawImageUpload: {
|
|
118
|
+
type: Boolean,
|
|
119
|
+
default:false
|
|
120
|
+
},
|
|
121
|
+
checkListFrom: {
|
|
122
|
+
type: String
|
|
123
|
+
},
|
|
124
|
+
zoneName: {
|
|
125
|
+
type: String
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
strict: true,
|
|
130
|
+
versionKey: false,
|
|
131
|
+
timestamps: true,
|
|
132
|
+
},
|
|
133
|
+
);
|
|
134
|
+
|
|
135
135
|
export default mongoose.model( 'processedTaskConfig', processestaskconfigSchema);
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
|
|
3
|
-
const templateLogSchema = new mongoose.Schema(
|
|
4
|
-
{
|
|
5
|
-
templateId:{
|
|
6
|
-
type:mongoose.Types.ObjectId,
|
|
7
|
-
required:true
|
|
8
|
-
},
|
|
9
|
-
data:{}
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
strict: true,
|
|
13
|
-
versionKey: false,
|
|
14
|
-
timestamps: true,
|
|
15
|
-
},
|
|
16
|
-
);
|
|
17
|
-
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const templateLogSchema = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
templateId:{
|
|
6
|
+
type:mongoose.Types.ObjectId,
|
|
7
|
+
required:true
|
|
8
|
+
},
|
|
9
|
+
data:{}
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
strict: true,
|
|
13
|
+
versionKey: false,
|
|
14
|
+
timestamps: true,
|
|
15
|
+
},
|
|
16
|
+
);
|
|
17
|
+
|
|
18
18
|
export default mongoose.model( 'templateLog', templateLogSchema );
|
package/schema/user.model.js
CHANGED
|
@@ -1,139 +1,139 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
|
|
3
|
-
const user = new mongoose.Schema(
|
|
4
|
-
{
|
|
5
|
-
userName: {
|
|
6
|
-
type: String,
|
|
7
|
-
},
|
|
8
|
-
email: {
|
|
9
|
-
type: String,
|
|
10
|
-
required: true,
|
|
11
|
-
unique: true,
|
|
12
|
-
},
|
|
13
|
-
userProfile:{
|
|
14
|
-
type:String
|
|
15
|
-
},
|
|
16
|
-
countryCode: {
|
|
17
|
-
type: String,
|
|
18
|
-
},
|
|
19
|
-
mobileNumber: {
|
|
20
|
-
type: String,
|
|
21
|
-
},
|
|
22
|
-
clientId: {
|
|
23
|
-
type: String,
|
|
24
|
-
},
|
|
25
|
-
role: {
|
|
26
|
-
type: String,
|
|
27
|
-
enum: [ 'superadmin', 'admin', 'user' ],
|
|
28
|
-
default: 'user',
|
|
29
|
-
},
|
|
30
|
-
isActive: {
|
|
31
|
-
type: Boolean,
|
|
32
|
-
default: true,
|
|
33
|
-
},
|
|
34
|
-
permission: [
|
|
35
|
-
{
|
|
36
|
-
featureName: {
|
|
37
|
-
type: String,
|
|
38
|
-
},
|
|
39
|
-
product: [
|
|
40
|
-
{
|
|
41
|
-
name: {
|
|
42
|
-
type: String,
|
|
43
|
-
},
|
|
44
|
-
isView: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
},
|
|
47
|
-
isEdit: {
|
|
48
|
-
type: Boolean,
|
|
49
|
-
},
|
|
50
|
-
isDownload: {
|
|
51
|
-
type: Boolean,
|
|
52
|
-
},
|
|
53
|
-
isDelete: {
|
|
54
|
-
type: Boolean,
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
],
|
|
58
|
-
},
|
|
59
|
-
],
|
|
60
|
-
rolespermission: [
|
|
61
|
-
{
|
|
62
|
-
featureName: {
|
|
63
|
-
type: String,
|
|
64
|
-
},
|
|
65
|
-
modules: [
|
|
66
|
-
{
|
|
67
|
-
name: {
|
|
68
|
-
type: String,
|
|
69
|
-
},
|
|
70
|
-
isAdd: {
|
|
71
|
-
type: Boolean,
|
|
72
|
-
},
|
|
73
|
-
isEdit: {
|
|
74
|
-
type: Boolean,
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
],
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
userType:{
|
|
81
|
-
type: String,
|
|
82
|
-
enum:['tango','client','lead']
|
|
83
|
-
},
|
|
84
|
-
tangoUserType:{
|
|
85
|
-
type: String,
|
|
86
|
-
enum:['audit','dashboard']
|
|
87
|
-
},
|
|
88
|
-
password: {
|
|
89
|
-
type: String
|
|
90
|
-
},
|
|
91
|
-
refreshToken:{
|
|
92
|
-
type: String
|
|
93
|
-
},
|
|
94
|
-
twoFactorAuthentication : {
|
|
95
|
-
code: {
|
|
96
|
-
type: String
|
|
97
|
-
},
|
|
98
|
-
isEnable : {
|
|
99
|
-
type: Boolean
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
emailAlert: {
|
|
103
|
-
infra: {
|
|
104
|
-
type: Boolean,
|
|
105
|
-
default: false
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
employeeId:{
|
|
109
|
-
type:String
|
|
110
|
-
},
|
|
111
|
-
assignedStores:{
|
|
112
|
-
type:Array
|
|
113
|
-
},
|
|
114
|
-
fcmToken:{
|
|
115
|
-
type:String,
|
|
116
|
-
default:''
|
|
117
|
-
},
|
|
118
|
-
loginFrom:{
|
|
119
|
-
type:String,
|
|
120
|
-
enum: [ 'web', 'android', 'ios' ],
|
|
121
|
-
default:'web'
|
|
122
|
-
},
|
|
123
|
-
termsAndCondition: {
|
|
124
|
-
type: Boolean,
|
|
125
|
-
default: false
|
|
126
|
-
},
|
|
127
|
-
employeeTagId:{
|
|
128
|
-
type:String
|
|
129
|
-
},
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
strict: true,
|
|
133
|
-
versionKey: false,
|
|
134
|
-
timestamps: true,
|
|
135
|
-
},
|
|
136
|
-
);
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
export default mongoose.model( 'user', user );
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const user = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
userName: {
|
|
6
|
+
type: String,
|
|
7
|
+
},
|
|
8
|
+
email: {
|
|
9
|
+
type: String,
|
|
10
|
+
required: true,
|
|
11
|
+
unique: true,
|
|
12
|
+
},
|
|
13
|
+
userProfile:{
|
|
14
|
+
type:String
|
|
15
|
+
},
|
|
16
|
+
countryCode: {
|
|
17
|
+
type: String,
|
|
18
|
+
},
|
|
19
|
+
mobileNumber: {
|
|
20
|
+
type: String,
|
|
21
|
+
},
|
|
22
|
+
clientId: {
|
|
23
|
+
type: String,
|
|
24
|
+
},
|
|
25
|
+
role: {
|
|
26
|
+
type: String,
|
|
27
|
+
enum: [ 'superadmin', 'admin', 'user' ],
|
|
28
|
+
default: 'user',
|
|
29
|
+
},
|
|
30
|
+
isActive: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: true,
|
|
33
|
+
},
|
|
34
|
+
permission: [
|
|
35
|
+
{
|
|
36
|
+
featureName: {
|
|
37
|
+
type: String,
|
|
38
|
+
},
|
|
39
|
+
product: [
|
|
40
|
+
{
|
|
41
|
+
name: {
|
|
42
|
+
type: String,
|
|
43
|
+
},
|
|
44
|
+
isView: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
},
|
|
47
|
+
isEdit: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
},
|
|
50
|
+
isDownload: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
},
|
|
53
|
+
isDelete: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
rolespermission: [
|
|
61
|
+
{
|
|
62
|
+
featureName: {
|
|
63
|
+
type: String,
|
|
64
|
+
},
|
|
65
|
+
modules: [
|
|
66
|
+
{
|
|
67
|
+
name: {
|
|
68
|
+
type: String,
|
|
69
|
+
},
|
|
70
|
+
isAdd: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
},
|
|
73
|
+
isEdit: {
|
|
74
|
+
type: Boolean,
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
userType:{
|
|
81
|
+
type: String,
|
|
82
|
+
enum:['tango','client','lead']
|
|
83
|
+
},
|
|
84
|
+
tangoUserType:{
|
|
85
|
+
type: String,
|
|
86
|
+
enum:['audit','dashboard']
|
|
87
|
+
},
|
|
88
|
+
password: {
|
|
89
|
+
type: String
|
|
90
|
+
},
|
|
91
|
+
refreshToken:{
|
|
92
|
+
type: String
|
|
93
|
+
},
|
|
94
|
+
twoFactorAuthentication : {
|
|
95
|
+
code: {
|
|
96
|
+
type: String
|
|
97
|
+
},
|
|
98
|
+
isEnable : {
|
|
99
|
+
type: Boolean
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
emailAlert: {
|
|
103
|
+
infra: {
|
|
104
|
+
type: Boolean,
|
|
105
|
+
default: false
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
employeeId:{
|
|
109
|
+
type:String
|
|
110
|
+
},
|
|
111
|
+
assignedStores:{
|
|
112
|
+
type:Array
|
|
113
|
+
},
|
|
114
|
+
fcmToken:{
|
|
115
|
+
type:String,
|
|
116
|
+
default:''
|
|
117
|
+
},
|
|
118
|
+
loginFrom:{
|
|
119
|
+
type:String,
|
|
120
|
+
enum: [ 'web', 'android', 'ios' ],
|
|
121
|
+
default:'web'
|
|
122
|
+
},
|
|
123
|
+
termsAndCondition: {
|
|
124
|
+
type: Boolean,
|
|
125
|
+
default: false
|
|
126
|
+
},
|
|
127
|
+
employeeTagId:{
|
|
128
|
+
type:String
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
strict: true,
|
|
133
|
+
versionKey: false,
|
|
134
|
+
timestamps: true,
|
|
135
|
+
},
|
|
136
|
+
);
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
export default mongoose.model( 'user', user );
|
package/schema/vmType.model.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
|
|
3
|
-
const vmTypeSchema = new mongoose.Schema(
|
|
4
|
-
{
|
|
5
|
-
clientId: {
|
|
6
|
-
type: String,
|
|
7
|
-
required: true,
|
|
8
|
-
},
|
|
9
|
-
vmType:{
|
|
10
|
-
type:String,
|
|
11
|
-
required:true
|
|
12
|
-
},
|
|
13
|
-
imageUrls:{
|
|
14
|
-
type:Array
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
strict: true,
|
|
19
|
-
versionKey: false,
|
|
20
|
-
timestamps: true,
|
|
21
|
-
},
|
|
22
|
-
);
|
|
23
|
-
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const vmTypeSchema = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
clientId: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: true,
|
|
8
|
+
},
|
|
9
|
+
vmType:{
|
|
10
|
+
type:String,
|
|
11
|
+
required:true
|
|
12
|
+
},
|
|
13
|
+
imageUrls:{
|
|
14
|
+
type:Array
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
strict: true,
|
|
19
|
+
versionKey: false,
|
|
20
|
+
timestamps: true,
|
|
21
|
+
},
|
|
22
|
+
);
|
|
23
|
+
|
|
24
24
|
export default mongoose.model( 'vmType', vmTypeSchema );
|