import mongoose, { modelNames } from "mongoose";

const paymentSchema = new mongoose.Schema({
     student:{type:mongoose.Schema.Types.ObjectId, ref:"Student", required:true},
     fees:{type:mongoose.Schema.Types.ObjectId, ref:"Fees", required:true},
     paymentDate:{type: Date, required:true}
});
export default mongoose.model("Payment", paymentSchema);