diff --git a/.meteor/packages b/.meteor/packages index 9574461..c8cb3b0 100644 --- a/.meteor/packages +++ b/.meteor/packages @@ -32,3 +32,4 @@ fourseven:scss stevezhu:lodash reactive-var reactive-dict +aldeed:collection2 diff --git a/.meteor/versions b/.meteor/versions index 89d183b..0557be7 100644 --- a/.meteor/versions +++ b/.meteor/versions @@ -1,5 +1,7 @@ accounts-base@1.2.1 accounts-password@1.1.3 +aldeed:collection2@2.5.0 +aldeed:simple-schema@1.3.3 audit-argument-checks@1.0.4 autoupdate@1.2.3 babel-compiler@5.8.24_1 diff --git a/collections/collection.js b/collections/collection.js index f87337a..bb185ad 100644 --- a/collections/collection.js +++ b/collections/collection.js @@ -11,3 +11,12 @@ Collection.deny({ update: () => true, remove: () => true }); + +let CollectionSchema = new SimpleSchema({ + "owner": { + type: String, + label: "The ID of the owner of this document." + } +}); + +Collection.attachSchema( CollectionSchema );