improve bonfire and start adding model and controller

This commit is contained in:
Michael Q Larson
2015-01-17 18:52:58 -08:00
parent 7722c20877
commit bae9e41b42
7 changed files with 109 additions and 36 deletions

14
models/Bonfire.js Normal file
View File

@@ -0,0 +1,14 @@
var mongoose = require('mongoose');
var secrets = require('../config/secrets');
var bonfireSchema = new mongoose.Schema({
name: {
type: String,
unique: true
},
link: String,
time: String,
bonfireNumber: Number
});
module.exports = mongoose.model('Bonfire', bonfireSchema);