Readme / restaurant model lunch menu changed

This commit is contained in:
2020-12-11 17:41:17 +01:00
parent 609f18291c
commit 976f93588d
3 changed files with 5 additions and 12 deletions

View File

@@ -70,7 +70,10 @@ const restaurantSchema = mongoose.Schema({
{
lunchSetName: String,
lunchSetPrice: String,
lunchSetDishes: [mongoose.Types.ObjectId],
lunchSetDishes: [{
dishId: mongoose.Types.ObjectId,
quantity: String
}],
},
],
dishes: [mongoose.Types.ObjectId],