mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-25 08:38:09 -05:00
15 lines
474 B
CoffeeScript
15 lines
474 B
CoffeeScript
|
c = require './../schemas'
|
||
|
|
||
|
CourseSchema = c.object {title: 'Course', required: ['name']}
|
||
|
c.extendNamedProperties CourseSchema # name first
|
||
|
|
||
|
_.extend CourseSchema.properties,
|
||
|
campaignID: c.objectId()
|
||
|
concepts: c.array {title: 'Programming Concepts', uniqueItems: true}, c.concept
|
||
|
description: {type: 'string'}
|
||
|
screenshot: c.url {title: 'URL', description: 'Link to course screenshot.'}
|
||
|
|
||
|
c.extendBasicProperties CourseSchema, 'Course'
|
||
|
|
||
|
module.exports = CourseSchema
|