const  mongoose = require('mongoose');

const  Schema = mongoose.Schema;

const userSchema = new Schema({
    student_name:{type:String,required:true},
    student_nic:{type:String,required:true},
    student_email: {type:String,required:true},
    student_phone:{type:String,required:true},
    student_address:{type:String,required:true},
    student_password:{type:String,required:true},
    student_gender:{type:String},
    student_image:{type:String},
    guardian_name:{type:String},
    guardian_email:{type:String},
    guardian_relationship:{type:String}
}, {
    timestamps:true,
});

const User = mongoose.model('student',userSchema);

module.exports = User;