mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
16 lines
516 B
CoffeeScript
16 lines
516 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")
|
|
aceConfig:
|
|
language: {type: 'string', 'enum': ['python', 'javascript']}
|
|
|
|
c.extendBasicProperties ClassroomSchema, 'Classroom'
|
|
|
|
module.exports = ClassroomSchema
|