mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-13 17:21:19 -05:00
24 lines
870 B
CoffeeScript
24 lines
870 B
CoffeeScript
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")
|
|
codeCamel: c.shortString(title: "UpperCamelCase version of code for display purposes")
|
|
aceConfig:
|
|
language: {type: 'string', 'enum': ['python', 'javascript']}
|
|
averageStudentExp: { type: 'string' }
|
|
ageRangeMin: { type: 'string' }
|
|
ageRangeMax: { type: 'string' }
|
|
archived:
|
|
type: 'boolean'
|
|
default: false
|
|
description: 'Visual only; determines if the classroom is in the "archived" list of the normal list.'
|
|
|
|
c.extendBasicProperties ClassroomSchema, 'Classroom'
|
|
|
|
module.exports = ClassroomSchema
|