소스 검색

Update the merchant model to have better location data on merchants.

Lee Morgan 5 년 전
부모
커밋
ee25808b75
1개의 변경된 파일8개의 추가작업 그리고 5개의 파일을 삭제
  1. 8 5
      models/merchant.js

+ 8 - 5
models/merchant.js

@@ -26,12 +26,15 @@ const MerchantSchema = new mongoose.Schema({
         default: new Date()
     },
     address: {
-        country: String,
-        state: String,
+        full: String,
         city: String,
-        street: String,
-        postalCode: String,
-        timeZone: String
+        state: String,
+        zip: String
+    },
+    location: {
+        type: {type: String},
+        coordinates: [],
+        required: false
     },
     inventory: [{
         ingredient: {