server v1.0.0

This commit is contained in:
2020-09-16 17:34:24 +02:00
parent a5232e7257
commit 27552e5eb0
13 changed files with 187 additions and 150 deletions

View File

@@ -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],