Added backend and integration for FilterPage and CourseTable done

This commit is contained in:
Harshitha Shetty
2024-12-09 05:06:08 +05:30
parent 6b06b9722f
commit e22727eefd
16 changed files with 756 additions and 118 deletions

11
server/models/Faculty.js Normal file
View File

@@ -0,0 +1,11 @@
const mongoose = require("mongoose");
const FacultySchema = new mongoose.Schema({
facultyId: { type: String, required: true, unique: true },
name: { type: String, required: true },
email: { type: String, required: true },
department: { type: String, required: true },
program: { type: String, required: true },
});
module.exports = mongoose.model("Faculty", FacultySchema);