Files
freeCodeCamp/models/Courseware.js

20 lines
387 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,
2015-02-01 23:35:27 -08:00
challengeSeed: String
});
module.exports = mongoose.model('Courseware', coursewareSchema);