Quellcode durchsuchen

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

Lee Morgan vor 5 Jahren
Ursprung
Commit
ee25808b75
1 geänderte Dateien mit 8 neuen und 5 gelöschten Zeilen
  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: {