23 lines
		
	
	
		
			576 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			576 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
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!
 | 
						|
    challengeType: Number // 0 = html, 1 = javascript only, 2 = video, 3 = zipline, 4 = basejump
 | 
						|
});
 | 
						|
 | 
						|
module.exports = mongoose.model('Courseware', coursewareSchema);
 |