var mongoose = require('mongoose');


var EventSchema = new mongoose.Schema({
    title: String,
    description: String,
    startAt: Date,
    endAt: Date,
    venue: {
        name: String,
        address: String,
    },
    ageLimit: Number,
    price: Number,
    category: String,
    tags: [String],
    imageUrl: String,
    eventUrl: String,
    isPromoted: Boolean
})

module.exports = mongoose.model('Event', EventSchema);

@@ -207,24 +207,76 @@
 ss: String,%0A
+        longitude: Number,%0A        latitude: Number%0A
     %7D,%0A    a
@@ -412,16 +412,42 @@
 romoted:
+ Boolean,%0A    isPublished:
  Boolean

Update event schema