added API call to CRM when user registers
This commit is contained in:
@@ -35,6 +35,9 @@ const dishSchema = mongoose.Schema({
|
||||
peanuts: Boolean,
|
||||
sesame: Boolean,
|
||||
},
|
||||
ingredients: {
|
||||
type: Array,
|
||||
},
|
||||
vegan: Boolean,
|
||||
vegetarian: Boolean,
|
||||
});
|
||||
|
||||
@@ -32,6 +32,12 @@ const restaurantSchema = mongoose.Schema({
|
||||
alcohol: Boolean,
|
||||
delivery: Boolean,
|
||||
},
|
||||
links: {
|
||||
facebook: String,
|
||||
twitter: String,
|
||||
instagram: String,
|
||||
www: String,
|
||||
},
|
||||
phone: Number,
|
||||
hidden: Boolean,
|
||||
dishes: [mongoose.Types.ObjectId],
|
||||
|
||||
@@ -10,12 +10,23 @@ const userSchema = mongoose.Schema({
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
firstname: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
lastname: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
restaurantId: mongoose.Types.ObjectId,
|
||||
subscriptionActive: {
|
||||
type: Boolean,
|
||||
required: true,
|
||||
},
|
||||
subscriptionDue: Date,
|
||||
subscriptionDue: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
});
|
||||
|
||||
export default mongoose.model("User", userSchema);
|
||||
|
||||
Reference in New Issue
Block a user