tango-api-schema 1.0.62 → 1.0.64
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 +3 -1
- package/package.json +1 -1
- package/schema/eyeTest.model.js +42 -37
- package/schema/eyeTestData.model.js +45 -0
package/index.js
CHANGED
|
@@ -36,6 +36,7 @@ import ticketModel from "./schema/ticket.model.js";
|
|
|
36
36
|
import activitylogModel from "./schema/activitylog.model.js";
|
|
37
37
|
import dailyWorkLogModel from "./schema/dailyWorkLog.model.js";
|
|
38
38
|
import financeModel from "./schema/finance.model.js";
|
|
39
|
+
import eyeTestDataModel from "./schema/eyeTestData.model.js";
|
|
39
40
|
|
|
40
41
|
export default {
|
|
41
42
|
clientModel,
|
|
@@ -75,5 +76,6 @@ export default {
|
|
|
75
76
|
ticketModel,
|
|
76
77
|
activitylogModel,
|
|
77
78
|
dailyWorkLogModel,
|
|
78
|
-
financeModel
|
|
79
|
+
financeModel,
|
|
80
|
+
eyeTestDataModel
|
|
79
81
|
};
|
package/package.json
CHANGED
package/schema/eyeTest.model.js
CHANGED
|
@@ -3,40 +3,45 @@
|
|
|
3
3
|
* @description EyeTest Schema
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
6
|
+
import mongoose from "mongoose";
|
|
7
|
+
|
|
8
|
+
// Schema
|
|
9
|
+
const collection = new mongoose.Schema(
|
|
10
|
+
{
|
|
11
|
+
actionType: {
|
|
12
|
+
type: String,
|
|
13
|
+
},
|
|
14
|
+
queueId: {
|
|
15
|
+
type: String,
|
|
16
|
+
},
|
|
17
|
+
tokenNo: {
|
|
18
|
+
type: String,
|
|
19
|
+
},
|
|
20
|
+
salesmanId: {
|
|
21
|
+
type: String,
|
|
22
|
+
},
|
|
23
|
+
facilityCode: {
|
|
24
|
+
type: String,
|
|
25
|
+
},
|
|
26
|
+
stepNo: {
|
|
27
|
+
type: String,
|
|
28
|
+
},
|
|
29
|
+
testDate: {
|
|
30
|
+
type: Date,
|
|
31
|
+
},
|
|
32
|
+
store: {
|
|
33
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
34
|
+
ref: "Store",
|
|
35
|
+
},
|
|
36
|
+
storeId: {
|
|
37
|
+
type: String,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
timestamps: true,
|
|
42
|
+
strict: true,
|
|
43
|
+
versionKey: false,
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
export default mongoose.model("eyeTest", collection);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const eyeTestDataSchema = new mongoose.Schema(
|
|
5
|
+
{
|
|
6
|
+
storeId: {
|
|
7
|
+
type: String,
|
|
8
|
+
required: true,
|
|
9
|
+
},
|
|
10
|
+
store: {
|
|
11
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
12
|
+
ref: "Store",
|
|
13
|
+
},
|
|
14
|
+
storeDate: {
|
|
15
|
+
type: Date,
|
|
16
|
+
},
|
|
17
|
+
eyeTestId: {
|
|
18
|
+
type: String,
|
|
19
|
+
},
|
|
20
|
+
optomId: {
|
|
21
|
+
type: String,
|
|
22
|
+
},
|
|
23
|
+
eyeTestStartTime: {
|
|
24
|
+
type: String,
|
|
25
|
+
},
|
|
26
|
+
eyeTestStartTime: {
|
|
27
|
+
type: String,
|
|
28
|
+
},
|
|
29
|
+
totalTimeTaken: {
|
|
30
|
+
type: String,
|
|
31
|
+
},
|
|
32
|
+
eyeTestData:{
|
|
33
|
+
type: Array,
|
|
34
|
+
default: [],
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
strict: true,
|
|
39
|
+
versionKey: false,
|
|
40
|
+
timestamps: true,
|
|
41
|
+
},
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
export default mongoose.model( 'eyeTestData', eyeTestDataSchema,'eyeTestData' );
|