mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-29 18:45:48 -05:00
24 lines
734 B
CoffeeScript
24 lines
734 B
CoffeeScript
c = require './../schemas'
|
|
|
|
CourseInstanceSchema = c.object {
|
|
title: 'Course Instance'
|
|
# required: [
|
|
# 'courseID', 'classroomID', 'members', 'ownerID', 'aceConfig'
|
|
# ]
|
|
}
|
|
|
|
_.extend CourseInstanceSchema.properties,
|
|
courseID: c.objectId()
|
|
classroomID: c.objectId()
|
|
description: {type: 'string'} # deprecated in favor of classrooms?
|
|
members: c.array {title: 'Members'}, c.objectId()
|
|
name: {type: 'string'} # deprecated in favor of classrooms?
|
|
ownerID: c.objectId()
|
|
prepaidID: c.objectId() # deprecated
|
|
aceConfig:
|
|
language: {type: 'string', 'enum': ['python', 'javascript']}
|
|
hourOfCode: { type: 'boolean' }
|
|
|
|
c.extendBasicProperties CourseInstanceSchema, 'CourseInstance'
|
|
|
|
module.exports = CourseInstanceSchema
|