Given user wants to add movie to their watch list
When user clicks on the “Add to Watchlist” link
Then Firebase will check to see if a movie with that movieId already exists in the database
And if the movie is not already in the database then the movie will be added to the trackedMovies object in the Firebase Database with keys of: movieId (id in the movie database API), name, year released, movie poster, top 5 major actors and tagline
And the movie will be linked to the user through the userMovie object with keys of: userId, movieId, rating and watched
And the rating key has a default value of 0 and the watched key has a default value of false
Given user wants to add movie to their watch list When user clicks on the “Add to Watchlist” link Then Firebase will check to see if a movie with that movieId already exists in the database And if the movie is not already in the database then the movie will be added to the trackedMovies object in the Firebase Database with keys of: movieId (id in the movie database API), name, year released, movie poster, top 5 major actors and tagline And the movie will be linked to the user through the userMovie object with keys of: userId, movieId, rating and watched And the rating key has a default value of 0 and the watched key has a default value of false