mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-01 11:27:14 -05:00
14 lines
426 B
CoffeeScript
14 lines
426 B
CoffeeScript
c = require './../schemas'
|
|
|
|
CourseInstanceSchema = c.object {title: 'Course Instance'}
|
|
c.extendNamedProperties CourseInstanceSchema # name first
|
|
|
|
_.extend CourseInstanceSchema.properties,
|
|
description: {type: 'string'}
|
|
members: c.array {title: 'Members'}, c.objectId()
|
|
ownerID: c.objectId()
|
|
prepaidID: c.objectId()
|
|
|
|
c.extendBasicProperties CourseInstanceSchema, 'CourseInstance'
|
|
|
|
module.exports = CourseInstanceSchema
|