10 lines
292 B
JavaScript
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); |