feat(api): add movie CRUD API (#56)
ci / web (push) Successful in 8s
e2e / e2e (push) Successful in 1m21s
ci / rust (push) Successful in 3m53s

This commit was merged in pull request #56.
This commit is contained in:
2026-08-22 20:40:31 +01:00
parent 302b7cfe72
commit 99ac79373d
18 changed files with 1271 additions and 4 deletions
@@ -0,0 +1,9 @@
-- A release can be returned for more than one title search. Keep the cached
-- release itself unique by indexer/guid and record each movie association.
CREATE TABLE movie_releases (
movie_id INTEGER NOT NULL REFERENCES movies (id) ON DELETE CASCADE,
release_id INTEGER NOT NULL REFERENCES releases (id) ON DELETE CASCADE,
PRIMARY KEY (movie_id, release_id)
) STRICT;
CREATE INDEX movie_releases_release ON movie_releases (release_id);