server v1.0.6

This commit is contained in:
2020-09-30 21:58:26 +02:00
parent 153a1e0fd2
commit 5d6c7d5e3f
5 changed files with 29 additions and 16 deletions

View File

@@ -14,19 +14,19 @@ const dishSchema = mongoose.Schema({
required: true,
},
price: {
type: Number,
type: String,
required: true,
},
notes: {
type: String,
maxlength: 128,
maxlength: 200,
},
imgUrl: {
type: String,
required: true,
},
hidden: Boolean,
weight: Number,
weight: String,
allergens: {
gluten: Boolean,
lactose: Boolean,
@@ -36,9 +36,7 @@ const dishSchema = mongoose.Schema({
peanuts: Boolean,
sesame: Boolean,
},
ingredients: {
type: [String],
},
ingredients: String,
glicemicIndex: String,
kCal: String,
vegan: Boolean,