Files
DiceCloud/rpg-docs/Model/Inventory/Containers.js
2014-11-13 09:30:54 +00:00

10 lines
292 B
JavaScript

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