mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-11 00:02:19 -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
|