Lee Morgan 5 лет назад
Родитель
Сommit
b8a9e72303
1 измененных файлов с 8 добавлено и 1 удалено
  1. 8 1
      models/merchant.js

+ 8 - 1
models/merchant.js

@@ -25,7 +25,14 @@ const MerchantSchema = new mongoose.Schema({
         type: Date,
         default: new Date()
     },
-    address: Object,
+    address: {
+        country: String,
+        state: String,
+        city: String,
+        street: String,
+        postalCode: String,
+        timeZone: String
+    },
     inventory: [{
         ingredient: {
             type: mongoose.Schema.Types.ObjectId,