import mongoose from "mongoose";
 
const carSchema = new mongoose.Schema({
    number: { type: String, required: true },
    type: { type: String, required: true },
    model: { type: String, required: true },
    manufacturingYear: { type: Number, required: true },
    driverName: { type: String, required: true },
    mechanicName: { type: String, required: true }
}, { timestamps: true });
 
export default mongoose.model("Car", carSchema);