-
Notifications
You must be signed in to change notification settings - Fork 0
feat(backend): Satt opp GraphQL-backend med PostgreSQL #4
Merged
+2,248
−0
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Databaseskjema: movies, genres, movie_genres, users, reviews og saved_movies (med list_type for vil se/sett/favoritt) - Apollo Server med spørringene searchMovies (søk, filter, sortering, paginering) og movie - Skript for å opprette tabeller (migrate) og engangsimport fra TMDB Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7 tasks
kevinnt
reviewed
Oct 15, 2026
kevinnt
requested changes
Oct 15, 2026
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.
Noen felt i DB skal ikke være der.
Se https://developer.themoviedb.org/docs/search-and-query-for-details
Svar på review i #4: movies-tabellen har nå bare feltene som trengs for søk, filtrering og sortering. Beskrivelse, regissør, spilletid, aldersgrense, originaltittel og bakgrunnsbilde hentes fra TMDB med film-ID-en via det nye feltet Movie.details (caches i 24 timer). - Importen bruker bare /discover/movie, ikke ett detaljkall per film - Nytt: users.avatar_url (profilbilde) og tabellen review_likes - Felles TMDB-hjelper i src/tmdb.ts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fjernet fra
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kevinnt
approved these changes
Oct 15, 2026
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.
LGTM 👍
Sign in
to join this conversation on GitHub.
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.
Hva er gjort
movieslagrer bare feltene som trengs for søk, filtrering og sortering. Detaljer (beskrivelse, regissør, spilletid, aldersgrense) hentes fra TMDB med film-ID-en viaMovie.detailssearchMovies(søk, filter, sortering, paginering) ogmovieAI-deklarasjon
Laget med hjelp fra Claude (Claude Code): databaseskjema, GraphQL-server, import- og migreringsskript, README og testing. Arkitektur og datamodell er bestemt av gruppa, og koden er gjennomgått av et gruppemedlem. Se
docs/AI_Deklarasjon/AI_Deklarasjon.mdfor detaljer.