import mongoose from "mongoose";
 
const paymentSchema = new mongoose.Schema({
    paymentNumber: { type: String, required: true },
    amountPaid: { type: Number, required: true },
    paymentDate: { type: Date, required: true },
    serviceRecord: { type: mongoose.Schema.Types.ObjectId, ref: "ServiceRecord", required: true }
}, { timestamps: true });
 
export default mongoose.model("Payment", paymentSchema);