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
355 B

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