Something went wrong. Try again.
A project designed to automate the process of fetching result screenshots from the MGU result portal, sending them to students via email as…
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637
const mongoose = require('mongoose');
const ExamSchema = new mongoose.Schema({ exam_id: { type: String, required: true, }, title: { type: String, required: false }, mode: { type: String, required: true, default: 'UG', enum: ['UG', 'PG'] },
// programme: { // type: String, // required: false // }, created_at: { type: Date, required: false, default: Date.now }, updated_at: { type: Date, required: false, default: Date.now }}, { collection: 'exam' });
module.exports = mongoose.model('Exam', ExamSchema);