1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-18 23:01:30 +00:00

Finished the monster stat block, using hr's as element modifiers, kinda weird.

This commit is contained in:
Scott Tolksdorf
2015-12-19 18:26:35 -05:00
parent 11b2f9dd53
commit ad569f04d8
8 changed files with 3610 additions and 53 deletions

18
server/homebrew.model.js Normal file
View File

@@ -0,0 +1,18 @@
var mongoose = require('mongoose');
var shortid = require('shortid');
var HomebrewSchema = mongoose.Schema({
shareId : {type : String, default: shortid.generate},
editId : {type : String, default: shortid.generate},
text : {type : String, default : ""},
created : { type: Date, default: Date.now },
});
var Homebrew = mongoose.model('Homebrew', HomebrewSchema);
module.exports = {
schema : HomebrewSchema,
model : Homebrew,
}