21
common/models/Courseware.js
Normal file
21
common/models/Courseware.js
Normal file
@@ -0,0 +1,21 @@
|
||||
var mongoose = require('mongoose');
|
||||
|
||||
/**
|
||||
*
|
||||
* @type {exports.Schema}
|
||||
*/
|
||||
|
||||
var coursewareSchema = new mongoose.Schema({
|
||||
name: {
|
||||
type: String,
|
||||
unique: true
|
||||
},
|
||||
difficulty: String,
|
||||
description: Array,
|
||||
tests: Array,
|
||||
challengeSeed: Array,
|
||||
// 0 = html, 1 = javascript only, 2 = video, 3 = zipline, 4 = basejump
|
||||
challengeType: Number
|
||||
});
|
||||
|
||||
module.exports = mongoose.model('Courseware', coursewareSchema);
|
Reference in New Issue
Block a user