From 55355074693f76dd0bfb33cf4ba0f9b513e71527 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sun, 2 Mar 2025 00:20:55 +0100 Subject: [PATCH] Rework collection relation on db schema --- api/README.md | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/api/README.md b/api/README.md index eb50f915..709637a5 100644 --- a/api/README.md +++ b/api/README.md @@ -8,7 +8,7 @@ The many-to-many relation between entries (episodes/movies) & videos is NOT a mi erDiagram shows { guid id PK - kind kind "serie|movie" + kind kind "serie|movie|collection" string(128) slug UK genre[] genres int rating "From 0 to 100" @@ -20,6 +20,7 @@ erDiagram jsonb external_id guid studio_id FK string original_language + guid collection_id FK } show_translations { guid id PK, FK @@ -37,6 +38,7 @@ erDiagram } shows ||--|{ show_translations : has shows |o--|| entries : has + shows |o--|| shows : has_collection entries { guid id PK @@ -70,23 +72,6 @@ erDiagram } video }|--|{ entries : for - collections { - guid id PK - string(256) slug UK - datetime added_date - datetime next_refresh - } - - collection_translations { - guid id PK, FK - string language PK - string name "NN" - jsonb poster - jsonb thumbnail - } - collections ||--|{ collection_translations : has - collections |o--|{ shows : has - seasons { guid id PK string(256) slug UK