get routes changed to query string

This commit is contained in:
2020-07-24 20:27:41 +02:00
parent d2a29416fe
commit d2ab242fed
4 changed files with 64 additions and 35 deletions

View File

@@ -20,6 +20,19 @@ const restaurantSchema = mongoose.Schema({
type: String,
required: true,
},
description: {
type: String,
},
tags: {
cardPayments: Boolean,
petFriendly: Boolean,
glutenFree: Boolean,
vegan: Boolean,
vegetarian: Boolean,
alcohol: Boolean,
delivery: Boolean,
},
phone: Number,
hidden: Boolean,
dishes: [mongoose.Types.ObjectId],
});