mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-04 21:01:06 -05:00
f1f020a50d
Remove old comment
19 lines
893 B
CoffeeScript
19 lines
893 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'}
|
|
duration: {type: 'number', description: 'Approximate hours of content'}
|
|
pricePerSeat: {type: 'number', description: 'Price per seat in USD cents.'} # deprecated
|
|
free: { type: 'boolean' }
|
|
screenshot: c.url {title: 'URL', description: 'Link to course screenshot.'}
|
|
adminOnly: { type: 'boolean', description: 'Deprecated in favor of releasePhase.' }
|
|
releasePhase: { type: {enum: ['beta', 'released'] }, description: "How far along the course's development is, determining who sees it." }
|
|
|
|
c.extendBasicProperties CourseSchema, 'Course'
|
|
|
|
module.exports = CourseSchema
|