Răsfoiți Sursa

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

Lee Morgan 5 ani în urmă
părinte
comite
ee25808b75
1 a modificat fișierele cu 8 adăugiri și 5 ștergeri
  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: {