You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
360 B

  1. var mongoose = require('mongoose'),
  2. Schema = mongoose.Schema;
  3. var thoughtSchema = new Schema({
  4. time: { type: String },
  5. content: { type: String },
  6. authorname: { type: String },
  7. user_id: { type: String },
  8. fav: { type: String } //array amb els users que posen fav
  9. })
  10. module.exports = mongoose.model('thoughtModel', thoughtSchema);