forked from CSI-KJSCE/appointment_to_examiner
Added backend and integration for FilterPage and CourseTable done
This commit is contained in:
11
server/models/Faculty.js
Normal file
11
server/models/Faculty.js
Normal 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);
|
||||
Reference in New Issue
Block a user