Added fields to features, made features able to expire

This commit is contained in:
Stefan Zermatten
2014-11-28 09:19:53 +02:00
parent 19059d4cd5
commit cd6682a78a
9 changed files with 464 additions and 452 deletions

View File

@@ -6,7 +6,8 @@ Schemas.Expiration = new SimpleSchema({
autoValue: function(){
if(!this.isSet) return Random.id();
}},
stat: { type: String },
effectId: { type: String, regEx: SimpleSchema.RegEx.Id },
expiry: { type: Number }
});
stat: { type: String },
effectIds: { type: [String], regEx: SimpleSchema.RegEx.Id },
featureIds:{ type: [String], regEx: SimpleSchema.RegEx.Id },
expiry: { type: Number }
});