Update docs vault and README for recent features

- New notes: History, Artwork
- Rewrite TMDB Integration: single detail request, entry mapper, rate
  limiter, refresh sync, stale-entry refresh, recommendations
- Update pages, routing, API reference, models, database migrations,
  services, components, hooks, API clients, settings, media system,
  library, Electron (Tauri in progress) and known issues
- Rewrite README for the current React/Express stack and setup
This commit is contained in:
X4Lo committed 2026-11-05 19:55:04 +00:00
1 parent 06bf902ad3
commit 229ecef902
20 files changed
+479 -162

No files matched your search

+41 -5
View File
@@ -34,8 +34,8 @@ The core model — represents a movie or TV series.
| `tagline` | STRING(200) | |
| `storyline` | STRING(3000) | |
| `country` | STRING(30) | |
| `certification` | INTEGER | |
| `network_studio` | STRING(40) | |
| `certification` | STRING(20) | e.g. `R`, `TV-14` (US first, then origin country) |
| `network_studio` | STRING(100) | First network, else first production company |
| `collection_id` | INTEGER | TMDB collection ID |
| `max_cast` | INTEGER | Default `10` |
| `credit_fetched` | BOOLEAN | Default `false` |
@@ -51,8 +51,28 @@ The core model — represents a movie or TV series.
| `banner_path` | STRING(200) | TMDB backdrop path |
| `date_first_seen` | DATEONLY | |
| `date_last_seen` | DATEONLY | |
| `last_fetch` | DATEONLY | Used by [[Services#Lazy Refresh\|lazy refresh]] |
| `last_fetch` | DATE | Last TMDB refresh (date + time); used by the [[API Reference#Stale Entries Refresh\|stale refresh]] |
| `entry_sync_status` | STRING(50) | Nullable. e.g. `"RequireCreditsSync"` |
| `adult` | BOOLEAN | |
| `tmdb_popularity` | FLOAT | |
| `original_language` | STRING(10) | |
| `origin_country` | JSON | `string[]` |
| `homepage` | STRING(500) | |
| `budget` / `revenue` | BIGINT | Movies only |
| `tv_type` | STRING(30) | TV only, e.g. `Scripted` |
| `number_of_seasons` / `number_of_episodes` | INTEGER | TV only |
| `last_air_date` | DATEONLY | TV only |
| `in_production` | BOOLEAN | TV only |
| `spoken_languages`, `production_countries`, `production_companies` | JSON | Detail page only* |
| `keywords` | JSON | `string[]`, up to 30* |
| `tmdb_videos` | JSON | YouTube trailers/teasers, up to 12* (not `videos`: that name is the Discovery Videos association) |
| `watch_providers` | JSON | Per-country stream/rent/buy providers* |
| `alternative_titles` | JSON | * |
| `created_by`, `next_episode_to_air`, `last_episode_to_air` | JSON | TV only* |
\* Listed in `Entry.DETAIL_ONLY_ATTRIBUTES` and excluded from the library list query (`GET /entries`) to keep it small.
All TMDB fields are filled by `mappers/entryMapper.js` — see [[TMDB Integration#Entry Mapper]].
**Has:** [[#EntryId]] (1:1), [[#EntryRating]] (1:1), [[#EntrySeen]] (1:N), [[#Season]] (1:N), [[#Credit]] (1:N), Genres (M:N), Networks (M:N), Collections (M:N), Media (polymorphic)
@@ -67,6 +87,7 @@ The core model — represents a movie or TV series.
| `id` | INTEGER PK AUTO | |
| `tmdb_id` | STRING(30) | |
| `imdb_id` | STRING(30) | |
| `tvdb_id` | STRING(30) | From the season's `external_ids` |
| `entry_id` | INTEGER FK | → Entry |
| `name` | STRING(500) | |
| `overview` | STRING(3000) | |
@@ -105,6 +126,10 @@ The core model — represents a movie or TV series.
| `air_date` | DATE | |
| `user_rating` | FLOAT | |
| `tmdb_rating` | FLOAT | |
| `tmdb_vote_count` | INTEGER | |
| `production_code` | STRING(50) | |
| `crew` | JSON | Directors + writers (`{ id, name, job, department, profile_path }`) |
| `guest_stars` | JSON | Up to 25 (`{ id, name, character, profile_path, order }`) |
| `still_path` | STRING(200) | |
| `date_first_seen` | DATEONLY | |
| `date_last_seen` | DATEONLY | |
@@ -163,6 +188,7 @@ Polymorphic image record. See [[Media System]].
| `mediaableId` | INTEGER | Polymorphic FK |
| `type` | STRING(50) | `'poster'`, `'backdrop'`, `'logo'`, `'still'`, `'profile'` |
| `path` | STRING(200) | UUID filename on disk |
| `tmdbPath` | STRING(200) | `tmdb_path` — TMDB `file_path` the image was downloaded from; null for custom uploads and images downloaded before it existed. Used by [[Artwork]] |
| `isLocal` | BOOLEAN | |
| `isSelected` | BOOLEAN | Default `false` — the "active" media |
| `isCustom` | BOOLEAN | Default `false` — user-uploaded |
@@ -245,6 +271,7 @@ See [[People]].
| `id` | INTEGER PK AUTO | |
| `tmdb_id` | STRING(100) | |
| `name` | STRING(100) | |
| `original_name` | STRING(200) | |
| `birthday` | DATEONLY | |
| `deathday` | DATEONLY | Nullable |
| `gender` | INTEGER | TMDB gender codes |
@@ -277,6 +304,12 @@ External ID storage (1:1 with Entry).
| `tmdb_id` | STRING(30) |
| `imdb_id` | STRING(30) |
| `tvdb_id` | STRING(30) |
| `wikidata_id` | STRING(30) |
| `facebook_id` | STRING(100) |
| `instagram_id` | STRING(100) |
| `twitter_id` | STRING(100) |
All filled from TMDB `external_ids` (TV series only have their IMDb id there).
**No timestamps.**
@@ -294,6 +327,7 @@ Multi-source ratings (1:1 with Entry).
| `entry_id` | INTEGER FK → Entry |
| `user_rating` | FLOAT |
| `tmdb_rating` | FLOAT |
| `tmdb_vote_count` | INTEGER |
| `imdb_rating` | FLOAT |
| `rotten_tomatoes_rating` | FLOAT |
@@ -324,7 +358,7 @@ Join table: Entry ↔ Network. Composite PK: `(network_id, entry_id)`. Has `orde
| Field | Type | Notes |
|---|---|---|
| `id` | INTEGER PK | TMDB genre ID (not auto-increment) |
| `name` | STRING(30) | |
| `name` | STRING(100) | |
**No timestamps.** Seeded with 27 TMDB genres on startup.
@@ -337,13 +371,15 @@ Join table: Entry ↔ Network. Composite PK: `(network_id, entry_id)`. Has `orde
| Field | Type |
|---|---|
| `id` | INTEGER PK (TMDB ID) |
| `name` | STRING(30) |
| `name` | STRING(100) |
| `originCountry` | STRING(100) |
| `homepage` | STRING(100) |
| `logoPath` | STRING(200) |
| `posterPath` | STRING(200) |
| `backdropPath` | STRING(200) |
`originCountry` and `logoPath` are filled from TMDB's `origin_country` / `logo_path` and refreshed with the entry.
**No timestamps.**
---