mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-03 05:34:23 -04:00
Rework collection relation on db schema
This commit is contained in:
parent
01183df4e9
commit
5535507469
@ -8,7 +8,7 @@ The many-to-many relation between entries (episodes/movies) & videos is NOT a mi
|
|||||||
erDiagram
|
erDiagram
|
||||||
shows {
|
shows {
|
||||||
guid id PK
|
guid id PK
|
||||||
kind kind "serie|movie"
|
kind kind "serie|movie|collection"
|
||||||
string(128) slug UK
|
string(128) slug UK
|
||||||
genre[] genres
|
genre[] genres
|
||||||
int rating "From 0 to 100"
|
int rating "From 0 to 100"
|
||||||
@ -20,6 +20,7 @@ erDiagram
|
|||||||
jsonb external_id
|
jsonb external_id
|
||||||
guid studio_id FK
|
guid studio_id FK
|
||||||
string original_language
|
string original_language
|
||||||
|
guid collection_id FK
|
||||||
}
|
}
|
||||||
show_translations {
|
show_translations {
|
||||||
guid id PK, FK
|
guid id PK, FK
|
||||||
@ -37,6 +38,7 @@ erDiagram
|
|||||||
}
|
}
|
||||||
shows ||--|{ show_translations : has
|
shows ||--|{ show_translations : has
|
||||||
shows |o--|| entries : has
|
shows |o--|| entries : has
|
||||||
|
shows |o--|| shows : has_collection
|
||||||
|
|
||||||
entries {
|
entries {
|
||||||
guid id PK
|
guid id PK
|
||||||
@ -70,23 +72,6 @@ erDiagram
|
|||||||
}
|
}
|
||||||
video }|--|{ entries : for
|
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 {
|
seasons {
|
||||||
guid id PK
|
guid id PK
|
||||||
string(256) slug UK
|
string(256) slug UK
|
||||||
|
Loading…
x
Reference in New Issue
Block a user