mirror of
https://github.com/arnaucube/thoughts.git
synced 2026-02-06 19:26:47 +01:00
tokens fully implemented, get all thoughts from user by user id implemented
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user