codecombat/app/schemas/models/course_instance.schema.coffee
2015-11-09 16:45:12 -08:00

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