Fixed backend issue, update course status working

This commit is contained in:
Harshitha Shetty
2025-01-04 23:50:59 +05:30
parent b4adca13c7
commit 7079591f84
7 changed files with 123 additions and 454 deletions

View File

@@ -1,6 +1,13 @@
const mongoose = require("mongoose");
const { v4: uuidv4 } = require("uuid");
const AppointmentSchema = new mongoose.Schema({
appointmentId: {
type: String,
required: true,
unique: true,
default: uuidv4
},
facultyId: { type: String, required: true },
facultyName: { type: String, required: true },
courseId: { type: String, required: true },
@@ -9,3 +16,5 @@ const AppointmentSchema = new mongoose.Schema({
});
module.exports = mongoose.model("Appointment", AppointmentSchema);