Continued migrating to Simpl-Schema and imports

This commit is contained in:
Stefan Zermatten
2018-10-19 14:01:23 +02:00
parent 989706483a
commit 7cda854d22
31 changed files with 391 additions and 710 deletions

View File

@@ -7,7 +7,7 @@ let Classes = new Mongo.Collection("classes");
classSchema= new SimpleSchema({
charId: {type: String, regEx: SimpleSchema.RegEx.Id, index: 1},
name: {type: String, optional: true, trim: false},
level: {type: Number},
level: {type: SimpleSchema.Integer},
createdAt: {
type: Date,
autoValue: function() {