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

@@ -64,7 +64,14 @@ const restaurantSchema = mongoose.Schema({
subscriptionStarted: Date,
subscriptionDue: Date,
categories: [String],
lunchMenu: [mongoose.Types.ObjectId],
lunchHours: String,
lunchMenu: [
{
lunchSetName: String,
lunchSetPrice: String,
lunchSetDishes: [mongoose.Types.ObjectId],
},
],
dishes: [mongoose.Types.ObjectId],
});