update dish schema | update Readme | migrate to Atlas
This commit is contained in:
@@ -13,12 +13,11 @@ const dishSchema = mongoose.Schema({
|
|||||||
maxlength: 64,
|
maxlength: 64,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
prices: [
|
prices: {
|
||||||
{
|
price1: {
|
||||||
priceName: {
|
priceName: {
|
||||||
type: String,
|
type: String,
|
||||||
maxlength: 60,
|
maxlength: 60,
|
||||||
required: true
|
|
||||||
},
|
},
|
||||||
price: {
|
price: {
|
||||||
type: String,
|
type: String,
|
||||||
@@ -26,7 +25,27 @@ const dishSchema = mongoose.Schema({
|
|||||||
required: true
|
required: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
],
|
price2: {
|
||||||
|
priceName: {
|
||||||
|
type: String,
|
||||||
|
maxlength: 60,
|
||||||
|
},
|
||||||
|
price: {
|
||||||
|
type: String,
|
||||||
|
maxlength: 20,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
price3: {
|
||||||
|
priceName: {
|
||||||
|
type: String,
|
||||||
|
maxlength: 60,
|
||||||
|
},
|
||||||
|
price: {
|
||||||
|
type: String,
|
||||||
|
maxlength: 20,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
notes: {
|
notes: {
|
||||||
type: String,
|
type: String,
|
||||||
maxlength: 200,
|
maxlength: 200,
|
||||||
|
|||||||
Reference in New Issue
Block a user