Files
DiceCloud/rpg-docs/Model/Inventory/Containers.js
2015-01-21 11:16:00 +00:00

11 lines
293 B
JavaScript

//set up the collection for containers
Containers = new Meteor.Collection("containers");
Schemas.Container = new SimpleSchema({
name: { type: String },
charId: { type: String, regEx: SimpleSchema.RegEx.Id},
isCarried: { type: Boolean }
});
Containers.attachSchema(Schemas.Container);