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

  1. var mongoose = require('mongoose'),
  2. Schema = mongoose.Schema;
  3. var joinSchema = new Schema({
  4. travelId: { type: String },
  5. joinedUserId: { type: String },
  6. joinedUsername: { type: String },
  7. acceptedUserId: { type: String },
  8. comment: { type: String }
  9. });
  10. module.exports = mongoose.model('joinModel', joinSchema);