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 @@
TemporaryHitPoints = new Mongo.Collection("temporaryHitPoints");
Schemas.TemporaryHitPoints = new SimpleSchema({
charId: {type: String, regEx: SimpleSchema.RegEx.Id},
charId: {type: String, regEx: SimpleSchema.RegEx.Id, index: 1},
name: {type: String, optional: true},
maximum: {type: Number, defaultValue: 0, min: 0, max: 500},
used: {type: Number, defaultValue: 0, min: 0, max: 500},