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.

17 lines
462 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. icon: { type: String },
  13. phone: { type: Number }
  14. })
  15. module.exports = mongoose.model('travelModel', travelSchema);