2015-11-02 20:07:23 -05:00
|
|
|
c = require './../schemas'
|
|
|
|
|
|
|
|
ClassroomSchema = c.object {title: 'Classroom', required: ['name']}
|
|
|
|
c.extendNamedProperties ClassroomSchema # name first
|
|
|
|
|
|
|
|
_.extend ClassroomSchema.properties,
|
|
|
|
members: c.array {title: 'Members'}, c.objectId()
|
|
|
|
ownerID: c.objectId()
|
|
|
|
description: {type: 'string'}
|
|
|
|
code: c.shortString(title: "Unique code to redeem")
|
2015-11-22 10:47:28 -05:00
|
|
|
codeCamel: c.shortString(title: "UpperCamelCase version of code for display purposes")
|
2015-11-17 19:09:29 -05:00
|
|
|
aceConfig:
|
|
|
|
language: {type: 'string', 'enum': ['python', 'javascript']}
|
2015-11-02 20:07:23 -05:00
|
|
|
|
|
|
|
c.extendBasicProperties ClassroomSchema, 'Classroom'
|
|
|
|
|
|
|
|
module.exports = ClassroomSchema
|