server addition
This commit is contained in:
parent
eed9a55a90
commit
d6e64f00a5
@ -13,20 +13,20 @@ schools.schema = new SimpleSchema({
|
|||||||
classes.schema = new SimpleSchema({
|
classes.schema = new SimpleSchema({
|
||||||
school: {type: String},
|
school: {type: String},
|
||||||
//icon: {type: String},
|
//icon: {type: String},
|
||||||
hour: {type: String},
|
|
||||||
teacher: {type: String},
|
|
||||||
name: {type: String, label: "Class Name"},
|
name: {type: String, label: "Class Name"},
|
||||||
|
hour: {type: String, optional: true},
|
||||||
|
teacher: {type: String, optional: true},
|
||||||
status: {type: Boolean, defaultValue: false},
|
status: {type: Boolean, defaultValue: false},
|
||||||
code: {type: String, optional: true},
|
code: {type: String, optional: true},
|
||||||
privacy: {type: String},
|
privacy: {type: String},
|
||||||
category: {type: String},
|
category: {type: String},
|
||||||
/*moderators: {type: [String]},
|
moderators: {type: [String]},
|
||||||
banned: {type: [String]},
|
banned: {type: [String]},
|
||||||
blockEdit: {type: [String]},
|
blockEdit: {type: [String]},
|
||||||
admin: {type: String}*/
|
admin: {type: String}
|
||||||
});
|
});
|
||||||
|
|
||||||
homework.schema = new SimpleSchema({
|
work.schema = new SimpleSchema({
|
||||||
class: {type: String},
|
class: {type: String},
|
||||||
dueDate: {type: Date},
|
dueDate: {type: Date},
|
||||||
aliases: {type: [String]},
|
aliases: {type: [String]},
|
||||||
@ -37,6 +37,13 @@ homework.schema = new SimpleSchema({
|
|||||||
done: {type: [String], optional: true}
|
done: {type: [String], optional: true}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Meteor.methods({
|
||||||
|
// createClass: function(client) {
|
||||||
|
// if
|
||||||
|
// }
|
||||||
|
|
||||||
|
// });
|
||||||
|
|
||||||
Meteor.startup(() => {
|
Meteor.startup(() => {
|
||||||
Meteor.methods({
|
Meteor.methods({
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user