codecombat/app/schemas/models/course_instance.schema.coffee

16 lines
417 B
CoffeeScript
Raw Normal View History

2015-08-29 10:15:35 -04:00
c = require './../schemas'
CourseInstanceSchema = c.object {title: 'Course Instance'}
_.extend CourseInstanceSchema.properties,
courseID: c.objectId()
2015-08-29 10:15:35 -04:00
description: {type: 'string'}
members: c.array {title: 'Members'}, c.objectId()
name: {type: 'string'}
2015-08-29 10:15:35 -04:00
ownerID: c.objectId()
prepaidID: c.objectId()
c.extendBasicProperties CourseInstanceSchema, 'CourseInstance'
module.exports = CourseInstanceSchema