split services / delete dish / mail init

This commit is contained in:
2020-08-28 18:54:30 +02:00
parent 3674e4ce3c
commit f304463b46
17 changed files with 507 additions and 204 deletions

View File

@@ -12,6 +12,22 @@ const restaurantSchema = mongoose.Schema({
maxlength: 128,
required: true,
},
adress: {
type: String,
maxlength: 128,
required: true,
},
location: {
type: {
type: String,
enum: ["Point"],
required: true,
},
coordinates: {
type: [Number],
required: true,
},
},
imgUrl: {
type: String,
required: true,