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

@@ -3,7 +3,7 @@ Containers = new Mongo.Collection("containers");
Schemas.Container = new SimpleSchema({
name: {type: String, trim: false},
charId: {type: String, regEx: SimpleSchema.RegEx.Id},
charId: {type: String, regEx: SimpleSchema.RegEx.Id, index: 1},
isCarried: {type: Boolean},
weight: {type: Number, min: 0, defaultValue: 0, decimal: true},
value: {type: Number, min: 0, defaultValue: 0, decimal: true},