import mongoose from "mongoose";

const paymentSchema = new mongoose.Schema({
    record:{type:mongoose.Schema.Types.ObjectId, ref:"ParkingRecord"},
    amountPaid:{type:Number},
    paymentDate:{type:Date, default:Date.now}
}); 

export default mongoose.model("Payment", paymentSchema);