mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
17 lines
495 B
CoffeeScript
17 lines
495 B
CoffeeScript
c = require './../schemas'
|
|
|
|
CourseInstanceSchema = c.object {title: 'Course Instance'}
|
|
|
|
_.extend CourseInstanceSchema.properties,
|
|
courseID: c.objectId()
|
|
description: {type: 'string'}
|
|
members: c.array {title: 'Members'}, c.objectId()
|
|
name: {type: 'string'}
|
|
ownerID: c.objectId()
|
|
prepaidID: c.objectId()
|
|
aceConfig:
|
|
language: {type: 'string', 'enum': ['python', 'javascript']}
|
|
|
|
c.extendBasicProperties CourseInstanceSchema, 'CourseInstance'
|
|
|
|
module.exports = CourseInstanceSchema
|