server v1.0.0
This commit is contained in:
@@ -30,7 +30,6 @@ const restaurantSchema = mongoose.Schema({
|
||||
},
|
||||
imgUrl: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
workingHours: {
|
||||
type: String,
|
||||
@@ -57,8 +56,8 @@ const restaurantSchema = mongoose.Schema({
|
||||
phone: Number,
|
||||
hidden: Boolean,
|
||||
subscriptionActive: Boolean,
|
||||
subscriptionStarted: String,
|
||||
subscriptionDue: String,
|
||||
subscriptionStarted: Date,
|
||||
subscriptionDue: Date,
|
||||
dishes: [mongoose.Types.ObjectId],
|
||||
});
|
||||
|
||||
|
||||
@@ -13,23 +13,28 @@ const userSchema = mongoose.Schema({
|
||||
firstname: {
|
||||
type: String,
|
||||
required: true,
|
||||
maxlength: 64,
|
||||
},
|
||||
lastname: {
|
||||
type: String,
|
||||
required: true,
|
||||
maxlength: 64,
|
||||
},
|
||||
billing: {
|
||||
NIP: {
|
||||
type: String,
|
||||
required: true,
|
||||
maxlength: 64,
|
||||
},
|
||||
adress: {
|
||||
type: String,
|
||||
required: true,
|
||||
maxlength: 128,
|
||||
},
|
||||
companyName: {
|
||||
type: String,
|
||||
required: true,
|
||||
maxlength: 64,
|
||||
},
|
||||
},
|
||||
restaurants: [mongoose.Types.ObjectId],
|
||||
|
||||
Reference in New Issue
Block a user