codecombat/app/schemas/models/course_instance.schema.coffee
Matt Lott 9131d8668f Course enroll page
Will add a prepaid purchase once the prepaid-v2 branch is merged into
master.
2015-09-03 11:04:52 -07:00

15 lines
417 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()
c.extendBasicProperties CourseInstanceSchema, 'CourseInstance'
module.exports = CourseInstanceSchema