const mongoose = require("mongoose")

const Payment_schema = new mongoose.Schema({
    student_id: { 
        type: mongoose.Schema.Types.ObjectId,
        ref: "Student"
    },
    amount: { type: String, required: true },
    payment_date: { type: Date, default: Date.now },
    created_At: { type: Date, default: Date.now },
})

module.exports = mongoose.model("Payment", Payment_schema)