mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-28 14:01:32 -05:00
24 lines
452 B
JavaScript
24 lines
452 B
JavaScript
var mongoose = require('mongoose');
|
|
var secrets = require('../config/secrets');
|
|
|
|
/**
|
|
*
|
|
* @type {exports.Schema}
|
|
*/
|
|
|
|
|
|
var bonfireSchema = new mongoose.Schema({
|
|
name: {
|
|
type: String,
|
|
unique: true
|
|
},
|
|
difficulty: String,
|
|
description: Array,
|
|
tests: Array,
|
|
challengeSeed: String,
|
|
challengeEntryPoint: String,
|
|
challengeEntryPointNegate: String
|
|
});
|
|
|
|
module.exports = mongoose.model('Bonfire', bonfireSchema);
|