mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-25 00:28:31 -05:00
15 lines
438 B
CoffeeScript
15 lines
438 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")
|
||
|
|
||
|
c.extendBasicProperties ClassroomSchema, 'Classroom'
|
||
|
|
||
|
module.exports = ClassroomSchema
|