server v1.0.4

+ working hours for a whole week
+ dish visibility API
+ categories API
+ lunch menu API
+ updated Readme
This commit is contained in:
2020-09-23 18:41:02 +02:00
parent d7395f5472
commit 3a6a6f4c5c
7 changed files with 194 additions and 23 deletions

View File

@@ -33,8 +33,13 @@ const restaurantSchema = mongoose.Schema({
type: String,
},
workingHours: {
type: String,
required: true,
pn: String,
wt: String,
sr: String,
cz: String,
pt: String,
sb: String,
nd: String,
},
description: {
type: String,
@@ -58,6 +63,8 @@ const restaurantSchema = mongoose.Schema({
subscriptionActive: Boolean,
subscriptionStarted: Date,
subscriptionDue: Date,
categories: [String],
lunchMenu: [mongoose.Types.ObjectId],
dishes: [mongoose.Types.ObjectId],
});