forked from CSI-KJSCE/appointment_to_examiner
Fixed backend issue, update course status working
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user