mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
9131d8668f
Will add a prepaid purchase once the prepaid-v2 branch is merged into master.
15 lines
417 B
CoffeeScript
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
|