瀏覽代碼

Update the model again.

Lee Morgan 5 年之前
父節點
當前提交
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,