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);
|