var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var mongooseUniqueValidator = require('mongoose-unique-validator');

var bookmarkSchema = new Schema({
    name: {type:String, required: true, unique: true},
    url: {type:String, required: true, unique: true},
    description: String,
    category: {type:String, required: true},
    tags: [String]
},
{
  timestamps: true
});

bookmarkSchema.plugin(mongooseUniqueValidator);

module.exports = mongoose.model('Bookmark', bookmarkSchema);

@@ -225,11 +225,16 @@
     
-url
+location
 : %7Bt

rename url attribute to location