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
306 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. });
  9. module.exports = mongoose.model('joinModel', joinSchema);