소스 검색

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,