Begin restructuring all Coursewares and Bonfires to one unified model and flow.

This commit is contained in:
terakilobyte
2015-05-16 00:39:43 -04:00
parent 0e75d251b5
commit 94abc6cf5b
7 changed files with 1734 additions and 8 deletions

View File

@@ -1,16 +1,22 @@
var mongoose = require('mongoose');
var secrets = require('../config/secrets');
/**
*
* @type {exports.Schema}
*/
var challengeSchema = new mongoose.Schema({
name: {
type: String,
unique: true
},
link: String,
time: String,
challengeNumber: Number,
video: String,
steps: Array
difficulty: String,
description: Array,
tests: Array,
challengeSeed: Array,
completionMessage: String, // Congratulations! You've finished our HTML and CSS track!
challengeType: Number // 0 = html, 1 = javascript only, 2 = video, 3 = zipline, 4 = basejump
});
module.exports = mongoose.model('Challenge', challengeSchema);