payservedb 1.7.2 → 1.7.3
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/package.json +1 -1
- package/src/models/customer.js +31 -19
package/package.json
CHANGED
package/src/models/customer.js
CHANGED
|
@@ -25,34 +25,34 @@ const CustomerSchema = new mongoose.Schema({
|
|
|
25
25
|
type: String,
|
|
26
26
|
required: true
|
|
27
27
|
},
|
|
28
|
-
nextOfKinName:{
|
|
29
|
-
type:String,
|
|
30
|
-
required:true
|
|
28
|
+
nextOfKinName: {
|
|
29
|
+
type: String,
|
|
30
|
+
required: true
|
|
31
31
|
},
|
|
32
|
-
nextOfKinRelationship:{
|
|
33
|
-
type:String,
|
|
34
|
-
required:true
|
|
32
|
+
nextOfKinRelationship: {
|
|
33
|
+
type: String,
|
|
34
|
+
required: true
|
|
35
35
|
},
|
|
36
|
-
nextOfKinContact:{
|
|
37
|
-
type:String,
|
|
38
|
-
required:true
|
|
36
|
+
nextOfKinContact: {
|
|
37
|
+
type: String,
|
|
38
|
+
required: true
|
|
39
39
|
},
|
|
40
|
-
customerType:{
|
|
41
|
-
type:String,
|
|
42
|
-
required:true
|
|
40
|
+
customerType: {
|
|
41
|
+
type: String,
|
|
42
|
+
required: true
|
|
43
43
|
},
|
|
44
|
-
residentType:{
|
|
45
|
-
type:String,
|
|
46
|
-
required:true
|
|
44
|
+
residentType: {
|
|
45
|
+
type: String,
|
|
46
|
+
required: true
|
|
47
47
|
},
|
|
48
48
|
facilityId: {
|
|
49
49
|
type: mongoose.Schema.Types.ObjectId,
|
|
50
50
|
ref: 'Facility'
|
|
51
51
|
},
|
|
52
|
-
status:{
|
|
53
|
-
type:String,
|
|
54
|
-
required:true,
|
|
55
|
-
enum:['Active','Inactive']
|
|
52
|
+
status: {
|
|
53
|
+
type: String,
|
|
54
|
+
required: true,
|
|
55
|
+
enum: ['Active', 'Inactive']
|
|
56
56
|
},
|
|
57
57
|
|
|
58
58
|
familyMembers: [
|
|
@@ -69,6 +69,10 @@ const CustomerSchema = new mongoose.Schema({
|
|
|
69
69
|
type: String,
|
|
70
70
|
required: false,
|
|
71
71
|
},
|
|
72
|
+
qrCode: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
required: false
|
|
75
|
+
}
|
|
72
76
|
},
|
|
73
77
|
],
|
|
74
78
|
staff: [
|
|
@@ -85,6 +89,10 @@ const CustomerSchema = new mongoose.Schema({
|
|
|
85
89
|
type: String,
|
|
86
90
|
required: false,
|
|
87
91
|
},
|
|
92
|
+
qrCode: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
required: false
|
|
95
|
+
}
|
|
88
96
|
},
|
|
89
97
|
],
|
|
90
98
|
vehicles: [
|
|
@@ -105,6 +113,10 @@ const CustomerSchema = new mongoose.Schema({
|
|
|
105
113
|
type: String,
|
|
106
114
|
required: false
|
|
107
115
|
},
|
|
116
|
+
qrCode: {
|
|
117
|
+
type: Boolean,
|
|
118
|
+
required: false
|
|
119
|
+
}
|
|
108
120
|
},
|
|
109
121
|
],
|
|
110
122
|
});
|