payservedb 2.1.0 → 2.1.2
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 +24 -21
package/package.json
CHANGED
package/src/models/customer.js
CHANGED
|
@@ -69,9 +69,9 @@ const CustomerSchema = new mongoose.Schema({
|
|
|
69
69
|
type: String,
|
|
70
70
|
required: false,
|
|
71
71
|
},
|
|
72
|
-
email:{
|
|
73
|
-
type:String,
|
|
74
|
-
required:false
|
|
72
|
+
email: {
|
|
73
|
+
type: String,
|
|
74
|
+
required: false
|
|
75
75
|
},
|
|
76
76
|
relation: {
|
|
77
77
|
type: String,
|
|
@@ -81,21 +81,22 @@ const CustomerSchema = new mongoose.Schema({
|
|
|
81
81
|
type: Boolean,
|
|
82
82
|
required: false
|
|
83
83
|
},
|
|
84
|
-
addVisitor:{
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
addVisitor: {
|
|
85
|
+
type: Boolean,
|
|
86
|
+
required: false
|
|
87
87
|
},
|
|
88
|
-
receiveMessage:{
|
|
89
|
-
type:Boolean,
|
|
90
|
-
required:false
|
|
88
|
+
receiveMessage: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
required: false
|
|
91
91
|
},
|
|
92
|
-
unit:{
|
|
93
|
-
type:
|
|
94
|
-
|
|
92
|
+
unit: {
|
|
93
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
94
|
+
ref: 'Unit',
|
|
95
|
+
required: false
|
|
95
96
|
},
|
|
96
|
-
qrUniqueCode:
|
|
97
|
-
{
|
|
98
|
-
type: String,
|
|
97
|
+
qrUniqueCode:
|
|
98
|
+
{
|
|
99
|
+
type: String,
|
|
99
100
|
unique: false
|
|
100
101
|
},
|
|
101
102
|
disabled: {
|
|
@@ -122,9 +123,10 @@ const CustomerSchema = new mongoose.Schema({
|
|
|
122
123
|
type: String,
|
|
123
124
|
required: false,
|
|
124
125
|
},
|
|
125
|
-
unit:{
|
|
126
|
-
type:
|
|
127
|
-
|
|
126
|
+
unit: {
|
|
127
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
128
|
+
ref: 'Unit',
|
|
129
|
+
required: false
|
|
128
130
|
},
|
|
129
131
|
qrCode: {
|
|
130
132
|
type: Boolean,
|
|
@@ -162,9 +164,10 @@ const CustomerSchema = new mongoose.Schema({
|
|
|
162
164
|
type: String,
|
|
163
165
|
required: false
|
|
164
166
|
},
|
|
165
|
-
unit:{
|
|
166
|
-
type:
|
|
167
|
-
|
|
167
|
+
unit: {
|
|
168
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
169
|
+
ref: 'Unit',
|
|
170
|
+
required: false
|
|
168
171
|
},
|
|
169
172
|
qrCode: {
|
|
170
173
|
type: Boolean,
|