mirror of
https://github.com/arnaucube/thoughts.git
synced 2026-02-06 19:26:47 +01:00
web i server: login, post thought, get thoughts
This commit is contained in:
@@ -5,7 +5,8 @@ var mongoose = require('mongoose'),
|
||||
var thoughtSchema = new Schema({
|
||||
time: { type: String },
|
||||
content: { type: String },
|
||||
user_id: { type: String },
|
||||
fav: { type: String } //array amb els users que posen fav
|
||||
username: { type: String },
|
||||
fav: { type: String }, //array amb els users que posen fav
|
||||
avatar: { type: String }
|
||||
})
|
||||
module.exports = mongoose.model('thoughtModel', thoughtSchema);
|
||||
|
||||
@@ -17,7 +17,7 @@ var userSchema = new Schema({
|
||||
username: { type: String },
|
||||
password: { type: String },
|
||||
description: { type: String },
|
||||
icon: { type: String },
|
||||
avatar: { type: String },
|
||||
mail: { type: String },
|
||||
admin: { type: Boolean }
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user