freeCodeCamp/models/Courseware.js

23 lines
589 B
JavaScript
Raw Normal View History

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,
challengeSeed: Array,
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-03-30 20:48:54 +00:00
module.exports = mongoose.model('Courseware', coursewareSchema);