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

@@ -2,6 +2,7 @@ import mongoose from "mongoose";
const dishSchema = mongoose.Schema({
_id: mongoose.Types.ObjectId,
restaurantId: mongoose.Types.ObjectId,
name: {
type: String,
maxlength: 128,
@@ -36,7 +37,7 @@ const dishSchema = mongoose.Schema({
sesame: Boolean,
},
ingredients: {
type: Array,
type: [String],
},
vegan: Boolean,
vegetarian: Boolean,