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.

14 lines
380 B

  1. var mongoose = require('mongoose'),
  2. Schema = mongoose.Schema;
  3. var carSchema = new Schema({
  4. title: { type: String },
  5. description: { type: String },
  6. owner: { type: String },
  7. zone: { type: String },
  8. available: { type: Boolean },
  9. generateddate: { type: Date },
  10. seats: { type: Number }
  11. })
  12. module.exports = mongoose.model('carModel', carSchema);