e-scooter-rental-system/server/models/VehicleType.js

13 lines
366 B
JavaScript

const mongoose = require('mongoose');
const vehicleTypeSchema = new mongoose.Schema({
storeId: { type: String, required: true, index: true },
brand: { type: String, required: true },
name: { type: String, required: true },
cover: { type: String, default: '' },
}, {
timestamps: true
});
module.exports = mongoose.model('VehicleType', vehicleTypeSchema);