-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backend #37
base: backend
Are you sure you want to change the base?
Backend #37
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-work on these changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First of all, delete all these images from "Filesss" and whenever committing always ignore the test files/folders
//Testing Route | ||
router.get('/', (req, res) => { | ||
console.log('Project Route'); | ||
res.send('Project Route'); | ||
}); | ||
|
||
router.post("/add", addProject); | ||
router.post('/add', upload.single('file'), addProject); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just check whatever changes I told to @Smit-Dama on #33 and update accordingly!
|
||
const gradeSchema = new mongoose.Schema( | ||
{ | ||
sem1: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add userId
as a reference to the User model so that we can map the user with the grades
}, | ||
sem8_pdf: { | ||
type: String | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, why store the grades like this?
I would suggest making a grade
array and then inside that array storing the objects of grade which include
- semester
- grade/pointer
- subject (for future if needed to store the details of each subject in the semester)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modify this file according to the new Grades
model
@KreenaShah resolve merge conflicts |
No description provided.