exports = module.exports = function(collection, mongoose) {
    var schema = mongoose.Schema({
        hash: {
            type: String,
            required: true,
            index: true
        },
        text: {
            type: String,
            required: true
        }
    });

    return mongoose.model(collection, schema);
};

@@ -176,16 +176,42 @@
   index:
+ true,%0A            unique:
  true%0A  

update model to have unique hash