server 1.0.3

This commit is contained in:
2020-09-19 18:16:50 +02:00
parent 36dd3d8238
commit d7395f5472
8 changed files with 35 additions and 13 deletions

View File

@@ -39,6 +39,8 @@ const dishSchema = mongoose.Schema({
ingredients: {
type: [String],
},
glicemicIndex: String,
kCal: String,
vegan: Boolean,
vegetarian: Boolean,
});

View File

@@ -50,11 +50,10 @@ const restaurantSchema = mongoose.Schema({
},
links: {
facebook: String,
twitter: String,
instagram: String,
www: String,
},
phone: Number,
phone: String,
hidden: Boolean,
subscriptionActive: Boolean,
subscriptionStarted: Date,

View File

@@ -38,7 +38,6 @@ const userSchema = mongoose.Schema({
},
},
restaurants: [mongoose.Types.ObjectId],
trialUsed: Boolean,
});
export default mongoose.model("User", userSchema);