mondora/mondora-website-back

View on GitHub
lib/events-collection.js

Summary

Maintainability
A
0 mins
Test Coverage
Schema.Events = new SimpleSchema({
    day: {
        type: Number
    },
    country: {
        type: String
    },
    name: {
        type: String
    },
    denyWorking: {
        type: Boolean
    },
    tags: {
        type: [String],
        optional: true
    }
});

Events = new Mongo.Collection("events");
Events.attachSchema(Schema.Events);