|
@@ -14,7 +14,7 @@ module.exports = function(crowi) {
|
|
|
userGroupSchema = new mongoose.Schema({
|
|
userGroupSchema = new mongoose.Schema({
|
|
|
userGroupId: String,
|
|
userGroupId: String,
|
|
|
image: String,
|
|
image: String,
|
|
|
- name: { type: String, required: true, unique: true, index: true },
|
|
|
|
|
|
|
+ name: { type: String, required: true, unique: true },
|
|
|
createdAt: { type: Date, default: Date.now },
|
|
createdAt: { type: Date, default: Date.now },
|
|
|
});
|
|
});
|
|
|
userGroupSchema.plugin(mongoosePaginate);
|
|
userGroupSchema.plugin(mongoosePaginate);
|