tokens fully implemented, get all thoughts from user by user id implemented

This commit is contained in:
nau
2016-07-16 22:00:29 +02:00
parent 64882fc513
commit 9337b0a75c
4 changed files with 69 additions and 7 deletions

View File

@@ -5,6 +5,8 @@ var mongoose = require('mongoose'),
var thoughtSchema = new Schema({
time: { type: String },
content: { type: String },
authorname: { type: String }
authorname: { type: String },
user_id: { type: String },
fav: { type: String } //array amb els users que posen fav
})
module.exports = mongoose.model('thoughtModel', thoughtSchema);