Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Implemented database interactions for user likes and dislikes for both tutorials and comments. Ensured that the feature aligns with the existing database design.
Related Issue
Motivation and Context
The Like/Dislike feature was implemented to enhance user engagement by allowing them to express their preferences on tutorials and comments. The changes to the database were made to accommodate the storage and retrieval of like/dislike data efficiently.
How Has This Been Tested?
The feature was thoroughly tested to ensure that users can successfully like or dislike tutorials and comments, and that the data is stored accurately in the database. Unit tests were written to cover various scenarios, and integration tests were performed to verify the interaction with the database.
Screenshots or GIF (In case of UI changes):
Before
Before.like.dislike.implementation.mov
After
After.like-dislike.implementation.mov
Types of changes
The database schema was updated to include tables for storing like/dislike data associated with tutorials and comments. For details, refer to the updated ER diagram outlining the modifications: Link to Updated ER Diagram
Checklist: