feat(data): Upgrade Data Layer for Ratings and Recommendations
What does this MR do?
This MR upgrades the data layer to capture the necessary data points for the upcoming Recommendation Engine.
Key Changes:
-
Data Capture:
- Modified
MovieDtoto capturegenre_idsfrom the TMDB API. - Updated
MovieEntityto store genres (as a string) anduserRating.
- Modified
-
Rating System:
- Implemented
setUserRatingin the repository. - Logic: When a user rates a movie (0.5 - 5 stars), it is saved to the local database AND automatically added to the default watchlist (as per requirements).
- Implemented
-
UI Integration:
- Connected the
RatingBarin the Details Bottom Sheet to the backend logic.
- Connected the
Why needed?
We cannot build a recommendation algorithm without knowing what the user likes (Ratings) and what kind of movies they are (Genres). This MR provides that data foundation.