Fixes and upgrades (logging in / CORS headers expose / registering)
This commit is contained in:
@@ -40,6 +40,9 @@ const restaurantSchema = mongoose.Schema({
|
||||
},
|
||||
phone: Number,
|
||||
hidden: Boolean,
|
||||
subscriptionActive: Boolean,
|
||||
subscriptionStarted: String,
|
||||
subscriptionDue: String,
|
||||
dishes: [mongoose.Types.ObjectId],
|
||||
});
|
||||
|
||||
|
||||
@@ -18,15 +18,8 @@ const userSchema = mongoose.Schema({
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
restaurantId: mongoose.Types.ObjectId,
|
||||
subscriptionActive: {
|
||||
type: Boolean,
|
||||
required: true,
|
||||
},
|
||||
subscriptionDue: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
restaurants: [mongoose.Types.ObjectId],
|
||||
trialUsed: Boolean,
|
||||
});
|
||||
|
||||
export default mongoose.model("User", userSchema);
|
||||
|
||||
Reference in New Issue
Block a user