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.

13 lines
347 B

  1. var mongoose = require('mongoose'),
  2. Schema = mongoose.Schema;
  3. var commentSchema = new Schema({
  4. travelId: { type: String },
  5. commentUserId: { type: String },
  6. commentUsername: { type: String },
  7. comment: { type: String },
  8. commentAvatar: { type: String }
  9. });
  10. module.exports = mongoose.model('commentModel', commentSchema);