Added indexes to charId on character fields

This commit is contained in:
Stefan Zermatten
2015-11-02 09:35:05 +02:00
parent e5dbe81ac1
commit 314da14ad1
14 changed files with 14 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
Notes = new Mongo.Collection("notes");
Schemas.Note = new SimpleSchema({
charId: {type: String, regEx: SimpleSchema.RegEx.Id},
charId: {type: String, regEx: SimpleSchema.RegEx.Id, index: 1},
name: {type: String, trim: false},
description: {type: String, optional: true, trim: false},
color: {