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({
name: {type: String},
2016-08-10 07:54:25 -04:00
status: {type: Boolean},
creator: {type: String},
2016-08-08 07:08:40 -04:00
aliases: {type: [String]}
});
classes.schema = new SimpleSchema({
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},
2016-08-08 20:49:24 -04:00
code: {type: String, defaultValue: ""},
2016-08-08 21:05:25 -04:00
privacy: {type: Boolean},
2016-08-08 07:08:40 -04:00
category: {type: String},
moderators: {type: [String], optional: true},
banned: {type: [String], optional: true},
2016-08-09 16:57:45 -04:00
blockEdit: {type: [String], optional: true},
2016-08-09 16:56:09 -04:00
subscribers: {type: Number, optional: true}
2016-08-08 07:08:40 -04:00
});
work.schema = new SimpleSchema({
2016-08-10 18:26:23 -04:00
name: {type: String},
2016-08-08 07:08:40 -04:00
class: {type: String},
dueDate: {type: Date},
2016-08-10 17:51:42 -04:00
aliases: {type: [String], optional: true},
2016-08-10 17:42:07 -04:00
submittor: {type: String, optional: true},
confirmations: {type: [String], optional: true},
2016-08-08 07:08:40 -04:00
reports: {type: [String], optional: true},
attachments: {type: [String], optional: true},
2016-08-10 17:42:07 -04:00
done: {type: [String], optional: true},
numberdone: {type: Number, optional: true},
type: {type: String}
2016-08-08 07:08:40 -04:00
});