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
310 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. });
  9. module.exports = mongoose.model('commentModel', commentSchema);