tango-api-schema 2.2.95 → 2.2.96

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.
@@ -1,114 +1,114 @@
1
- import mongoose from 'mongoose';
2
-
3
- const checklistlogSchema = new mongoose.Schema({
4
- checklistId: {
5
- type: mongoose.SchemaTypes.ObjectId
6
- },
7
- checkListName: {
8
- type: String
9
- },
10
- checklistDescription:{
11
- type:String
12
- },
13
- sectionId: {
14
- type: mongoose.SchemaTypes.ObjectId
15
- },
16
- sectionName: {
17
- type: String
18
- },
19
- questionName: {
20
- type: String
21
- },
22
- action: {
23
- type: String,
24
- required:true
25
- },
26
- store_id: {
27
- type: String
28
- },
29
- storeName: {
30
- type: String
31
- },
32
- client_id: {
33
- type: String,
34
- required:true
35
- },
36
- // brandId: {
37
- // type: mongoose.SchemaTypes.ObjectId,
38
- // required:true
39
- // },
40
- createdAt: {
41
- type: Date,
42
- default: Date.now
43
- },
44
- updatedAt: {
45
- type: Date,
46
- default: Date.now
47
- },
48
- date_iso: {
49
- type: Date,
50
- },
51
- processedChecklistId: {
52
- type: mongoose.SchemaTypes.ObjectId,
53
- },
54
- type:{
55
- type:String,
56
- default:'checklist'
57
- },
58
- userAnswer:{
59
- type:Array
60
- },
61
- answerType:{
62
- type:String
63
- },
64
- initiatedBy:{
65
- type:String
66
- },
67
- initiatedTime:{
68
- type:Date
69
- },
70
- submitTime:{
71
- type:Date
72
- },
73
- submitedBy:{
74
- type:String
75
- },
76
- createdByEmail:{
77
- type:String
78
- },
79
- createdByName:{
80
- type:String
81
- },
82
- createdBy:{
83
- type:mongoose.SchemaTypes.ObjectId
84
- },
85
- redoStatus:{
86
- type:Boolean,
87
- default:false
88
- },
89
- approver:{
90
- type:Array,
91
- default:[]
92
- },
93
- sections:{
94
- type:Array,
95
- default:[]
96
- },
97
- userEmail: {
98
- type: String
99
- },
100
- userName: {
101
- type: String
102
- },
103
- coverage: {
104
- type: String
105
- },
106
- },
107
- {
108
- strict: true,
109
- versionKey: false,
110
- timestamps: true,
111
- },
112
- );
113
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const checklistlogSchema = new mongoose.Schema({
4
+ checklistId: {
5
+ type: mongoose.SchemaTypes.ObjectId
6
+ },
7
+ checkListName: {
8
+ type: String
9
+ },
10
+ checklistDescription:{
11
+ type:String
12
+ },
13
+ sectionId: {
14
+ type: mongoose.SchemaTypes.ObjectId
15
+ },
16
+ sectionName: {
17
+ type: String
18
+ },
19
+ questionName: {
20
+ type: String
21
+ },
22
+ action: {
23
+ type: String,
24
+ required:true
25
+ },
26
+ store_id: {
27
+ type: String
28
+ },
29
+ storeName: {
30
+ type: String
31
+ },
32
+ client_id: {
33
+ type: String,
34
+ required:true
35
+ },
36
+ // brandId: {
37
+ // type: mongoose.SchemaTypes.ObjectId,
38
+ // required:true
39
+ // },
40
+ createdAt: {
41
+ type: Date,
42
+ default: Date.now
43
+ },
44
+ updatedAt: {
45
+ type: Date,
46
+ default: Date.now
47
+ },
48
+ date_iso: {
49
+ type: Date,
50
+ },
51
+ processedChecklistId: {
52
+ type: mongoose.SchemaTypes.ObjectId,
53
+ },
54
+ type:{
55
+ type:String,
56
+ default:'checklist'
57
+ },
58
+ userAnswer:{
59
+ type:Array
60
+ },
61
+ answerType:{
62
+ type:String
63
+ },
64
+ initiatedBy:{
65
+ type:String
66
+ },
67
+ initiatedTime:{
68
+ type:Date
69
+ },
70
+ submitTime:{
71
+ type:Date
72
+ },
73
+ submitedBy:{
74
+ type:String
75
+ },
76
+ createdByEmail:{
77
+ type:String
78
+ },
79
+ createdByName:{
80
+ type:String
81
+ },
82
+ createdBy:{
83
+ type:mongoose.SchemaTypes.ObjectId
84
+ },
85
+ redoStatus:{
86
+ type:Boolean,
87
+ default:false
88
+ },
89
+ approver:{
90
+ type:Array,
91
+ default:[]
92
+ },
93
+ sections:{
94
+ type:Array,
95
+ default:[]
96
+ },
97
+ userEmail: {
98
+ type: String
99
+ },
100
+ userName: {
101
+ type: String
102
+ },
103
+ coverage: {
104
+ type: String
105
+ },
106
+ },
107
+ {
108
+ strict: true,
109
+ versionKey: false,
110
+ timestamps: true,
111
+ },
112
+ );
113
+
114
114
  export default mongoose.model( 'checklistlog', checklistlogSchema);