Files
DiceCloud/rpg-docs/Model/Character/Proficiencies.js
2015-02-27 06:14:34 +00:00

27 lines
594 B
JavaScript

Proficiencies = new Meteor.Collection("proficiencies");
Schemas.Proficiency = new SimpleSchema({
charId: {
type: String,
regEx: SimpleSchema.RegEx.Id
},
name: {
type: String,
trim: false
},
//indicates what type of thing proficiency originated from
type: {
type: String,
defaultValue: "editable",
allowedValues: ["editable", "feature", "buff", "equipment", "inate"]
},
//the id of the feature, buff or item that created this effect
sourceId: {
type: String,
regEx: SimpleSchema.RegEx.Id,
optional: true
},
});
Proficiencies.attachSchema(Schemas.Proficiency);