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.

15 lines
405 B

  1. var mongoose = require('mongoose'),
  2. Schema = mongoose.Schema;
  3. var travelSchema = new Schema({
  4. title: { type: String },
  5. description: { type: String },
  6. owner: { type: String },
  7. from: { type: String },
  8. to: { type: String },
  9. date: { type: Date },
  10. generateddate: { type: Date },
  11. seats: { type: Number }
  12. })
  13. module.exports = mongoose.model('travelModel', travelSchema);