2015-01-17 18:52:58 -08:00
|
|
|
var mongoose = require('mongoose');
|
|
|
|
var secrets = require('../config/secrets');
|
|
|
|
|
2015-01-21 21:32:13 -05:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @type {exports.Schema}
|
|
|
|
*/
|
|
|
|
|
2015-01-22 13:20:46 -05:00
|
|
|
|
2015-01-17 18:52:58 -08:00
|
|
|
var bonfireSchema = new mongoose.Schema({
|
|
|
|
name: {
|
|
|
|
type: String,
|
|
|
|
unique: true
|
|
|
|
},
|
2015-01-25 23:10:05 -08:00
|
|
|
difficulty: String,
|
2015-01-21 21:32:13 -05:00
|
|
|
description: Array,
|
2015-01-24 00:44:08 -05:00
|
|
|
tests: Array,
|
2015-02-13 20:55:49 -05:00
|
|
|
challengeSeed: String
|
2015-01-17 18:52:58 -08:00
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = mongoose.model('Bonfire', bonfireSchema);
|