Spaces:
Running
Running
| const { ObjectId } = require("bson"); | |
| const { default: mongoose } = require("mongoose"); | |
| const Schema = mongoose.Schema; | |
| const userSchema = new Schema({ | |
| Name: { | |
| type: String, | |
| }, | |
| Email: { | |
| type: String, | |
| }, | |
| RollNumber: { | |
| type: Number, | |
| }, | |
| PhoneNumber: { | |
| type: String, | |
| }, | |
| Branch: { | |
| type: String, | |
| }, | |
| Year: { | |
| type: String, | |
| }, | |
| DiscordID: { | |
| type: String, | |
| }, | |
| Role: { | |
| type: String, | |
| default: "Member", | |
| }, | |
| TeamName: { | |
| type: String, | |
| }, | |
| }); | |
| module.exports = mongoose.model("Certificates", userSchema); | |