This commit is contained in:
2021-02-08 15:48:33 +01:00
parent 1434918f8e
commit 9dd4d10396
5 changed files with 42 additions and 16 deletions

View File

@@ -36,7 +36,10 @@ const userSchema = mongoose.Schema({
maxlength: 64,
},
},
isRestaurant: Boolean,
isRestaurant: {
type: Boolean,
required: true
},
restaurants: [mongoose.Types.ObjectId],
trialUsed: Boolean,
preferences: {