Vulcan/collections/searches.js
2014-06-22 10:55:31 +09:00

21 lines
328 B
JavaScript

Searches = new Meteor.Collection("searches", {
schema: new SimpleSchema({
_id: {
type: String,
regEx: SimpleSchema.RegEx.Id,
optional: true
},
timestamp: {
type: Date
},
keyword: {
type: String
}
})
});
Searches.allow({
update: isAdminById
, remove: isAdminById
});