var mongoose     = require('mongoose');
var Schema       = mongoose.Schema;

var Objectid = mongoose.Schema.Types.ObjectId;

var ConfigSchema   = new Schema({
	name: { type: String, unique: true, index: true },
	value: String,
});

ConfigSchema.set("_perms", {
	admin: "crud",
	all: "r",
});

module.exports = mongoose.model('Config', ConfigSchema);
var mongoose     = require('mongoose');
var Schema       = mongoose.Schema;

var Objectid = mongoose.Schema.Types.ObjectId;

var ConfigSchema   = new Schema({
	_id: String,
	value: String,
});

ConfigSchema.set("_perms", {
	admin: "crud",
	all: "r",
});

module.exports = mongoose.model('Config', ConfigSchema);
Allow user to specify id for config
Allow user to specify id for config
