adding author prop to model

master
Matt Huntington 9 years ago
parent 5852e91b0d
commit c345e84a77

@ -1,7 +1,8 @@
var mongoose = require('mongoose'); var mongoose = require('mongoose');
var commentSchema = mongoose.Schema({ var commentSchema = mongoose.Schema({
body:String body:String,
author:String
}); });
var Comments = mongoose.model('Comment', commentSchema); var Comments = mongoose.model('Comment', commentSchema);

Loading…
Cancel
Save