2015-08-29 10:15:35 -04:00
|
|
|
c = require './../schemas'
|
|
|
|
|
|
|
|
CourseInstanceSchema = c.object {title: 'Course Instance'}
|
|
|
|
|
|
|
|
_.extend CourseInstanceSchema.properties,
|
2015-09-03 14:04:40 -04:00
|
|
|
courseID: c.objectId()
|
2015-08-29 10:15:35 -04:00
|
|
|
description: {type: 'string'}
|
|
|
|
members: c.array {title: 'Members'}, c.objectId()
|
2015-09-03 14:04:40 -04:00
|
|
|
name: {type: 'string'}
|
2015-08-29 10:15:35 -04:00
|
|
|
ownerID: c.objectId()
|
|
|
|
prepaidID: c.objectId()
|
2015-10-30 18:56:43 -04:00
|
|
|
aceConfig:
|
|
|
|
language: {type: 'string', 'enum': ['python', 'javascript']}
|
2015-08-29 10:15:35 -04:00
|
|
|
|
|
|
|
c.extendBasicProperties CourseInstanceSchema, 'CourseInstance'
|
|
|
|
|
|
|
|
module.exports = CourseInstanceSchema
|