Readme / restaurant model lunch menu changed
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
- ##### **lunchMenu**:
|
||||
- ##### **lunchSetName**: _String_
|
||||
- ##### **lunchSetPrice**: _String_
|
||||
- ##### **lunchSetDishes**: [mongoose.Types.ObjectId]
|
||||
- ##### **lunchSetDishes**: [{ dishId: mongoose.Types.ObjectId, quantity: String }]
|
||||
- ##### **dishes**: [*mongoose.Types.ObjectId*]
|
||||
|
||||
<br>
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
const mongoose = require("mongoose");
|
||||
|
||||
const paymentSchema = mongoose.Schema({
|
||||
_id: mongoose.Types.ObjectId,
|
||||
restaurantId: mongoose.Types.ObjectId,
|
||||
amount: Number,
|
||||
months: Number,
|
||||
});
|
||||
|
||||
module.exorts = mongoose.model("Payment", paymentSchema);
|
||||
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user