start adding Courseware controllers, routes etc.

This commit is contained in:
Michael Q Larson
2015-02-01 14:22:34 -08:00
parent d7d4727c0f
commit afab456ad9
10 changed files with 411 additions and 68 deletions

21
models/Courseware.js Normal file
View File

@@ -0,0 +1,21 @@
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: String,
challengeEntryPoint: String
});
module.exports = mongoose.model('Courseware', coursewareSchema);