41 lines
1.3 KiB
JavaScript
Raw Normal View History

2016-08-08 07:08:40 -04:00
schools = new Mongo.Collection("Schools");
classes = new Mongo.Collection("Classes");
work = new Mongo.Collection("Work");
schools.schema = new SimpleSchema({
2016-08-13 17:36:35 -04:00
name: {type: String},
status: {type: Boolean},
creator: {type: String},
2016-08-08 07:08:40 -04:00
});
classes.schema = new SimpleSchema({
2016-08-13 17:36:35 -04:00
school: {type: String},
//icon: {type: String},
name: {type: String, label: "Class Name"},
hour: {type: String, optional: true},
teacher: {type: String, optional: true},
admin: {type: String, optional: true},
status: {type: Boolean, defaultValue: false},
code: {type: String, defaultValue: ""},
privacy: {type: Boolean},
category: {type: String},
moderators: {type: [String], optional: true},
banned: {type: [String], optional: true},
blockEdit: {type: [String], optional: true},
subscribers: {type: Number, optional: true}
2016-08-08 07:08:40 -04:00
});
work.schema = new SimpleSchema({
2016-08-13 17:36:35 -04:00
name: {type: String},
class: {type: String},
dueDate: {type: Date},
description: {type: String, optional: true},
creator: {type: String},
comments: {type: [String], optional: true},
confirmations: {type: [String], optional: true},
reports: {type: [String], optional: true},
attachments: {type: [String], optional: true},
done: {type: [String], optional: true},
type: {type: String}
2016-08-12 20:42:29 -04:00
});