12 lines
391 B
JavaScript
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);
|