2015-02-01 22:22:34 +00:00
|
|
|
var mongoose = require('mongoose');
|
|
|
|
var secrets = require('../config/secrets');
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @type {exports.Schema}
|
|
|
|
*/
|
|
|
|
|
|
|
|
var coursewareSchema = new mongoose.Schema({
|
|
|
|
name: {
|
|
|
|
type: String,
|
|
|
|
unique: true
|
|
|
|
},
|
|
|
|
difficulty: String,
|
|
|
|
description: Array,
|
|
|
|
tests: Array,
|
2015-02-06 20:11:22 +00:00
|
|
|
challengeSeed: Array,
|
2015-02-13 00:48:35 +00:00
|
|
|
completionMessage: String, // Congratulations! You've finished our HTML and CSS track!
|
2015-03-30 20:48:54 +00:00
|
|
|
challengeType: Number // 0 = html, 1 = javascript only, 2 = video, 3 = bonfire, 4 = zipline, 5 = basejump
|
2015-02-01 22:22:34 +00:00
|
|
|
});
|
|
|
|
|
2015-03-30 20:48:54 +00:00
|
|
|
module.exports = mongoose.model('Courseware', coursewareSchema);
|