import mongoose from "mongoose";
 
const serviceRecordSchema = new mongoose.Schema({
    recordNumber: { type: String, required: true },
    serviceDate: { type: Date, required: true },
    car: { type: mongoose.Schema.Types.ObjectId, ref: "Car", required: true },
    service: { type: mongoose.Schema.Types.ObjectId, ref: "Service", required: true }
}, { timestamps: true });
 
export default mongoose.model("ServiceRecord", serviceRecordSchema);