Files
appointment_to_examiner/server/models/Appointment.js
Harikrishnan Gopal b4adca13c7 Commit
2024-12-17 11:21:25 +05:30

12 lines
391 B
JavaScript

const mongoose = require("mongoose");
const AppointmentSchema = new mongoose.Schema({
facultyId: { type: String, required: true },
facultyName: { type: String, required: true },
courseId: { type: String, required: true },
courseName: { type: String, required: true },
task: { type: String, required: true },
});
module.exports = mongoose.model("Appointment", AppointmentSchema);