var mongoose = require('mongoose');


var VenueSchema = new mongoose.Schema({
    name: String,
    address: String,
    latitude: Number,
    longitude: Number
})

module.exports = mongoose.model('Venue', VenueSchema);

var mongoose = require('mongoose');


var VenueSchema = new mongoose.Schema({
    name: {type: String, trim: true},
    address: {type: String, trim: true},
    latitude: Number,
    longitude: Number
})

module.exports = mongoose.model('Venue', VenueSchema);

Trim venue name and address in schema
Trim venue name and address in schema
