21 lines
420 B
JavaScript
21 lines
420 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: String,
|
||
|
challengeEntryPoint: String
|
||
|
});
|
||
|
|
||
|
module.exports = mongoose.model('Courseware', coursewareSchema);
|