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:
18
server/homebrew.model.js
Normal file
18
server/homebrew.model.js
Normal 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,
|
||||
}
|
||||
Reference in New Issue
Block a user