import mongoose from 'mongoose';

const studentSchema =  mongoose.Schema({
    name: {
        type: String,
        required: true
     },
    email: {
        type: String,
        required: true,
        unique: true
    },
    parentName: {
        type: String,
        required: true
     },
    course: {
        type: String,
        required: true,
        enum: ["L4MMP", "L5SOD", "L4SOD", "L3NIT", "L4NIT", "L5NIT"]
     }
    }, { timestamps: true }
)
const Student = mongoose.model("Student", studentSchema)


export default Student;