mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-21 06:20:34 -04:00
Cleanup history in mermaid schema
This commit is contained in:
parent
6d2c9958f9
commit
4d9547952e
@ -98,22 +98,31 @@ erDiagram
|
|||||||
seasons ||--o{ entries : has
|
seasons ||--o{ entries : has
|
||||||
shows ||--|{ seasons : has
|
shows ||--|{ seasons : has
|
||||||
|
|
||||||
|
users {
|
||||||
|
guid id PK
|
||||||
|
}
|
||||||
|
|
||||||
watched_shows {
|
watched_shows {
|
||||||
guid show_id PK, FK
|
guid show_id PK, FK
|
||||||
guid user_id PK, FK
|
guid user_id PK, FK
|
||||||
status status "completed|watching|droped|planned"
|
status status "completed|watching|dropped|planned"
|
||||||
uint seen_entry_count "NN"
|
uint seen_entry_count "NN"
|
||||||
|
guid next_entry FK
|
||||||
}
|
}
|
||||||
shows ||--|{ watched_shows : has
|
shows ||--|{ watched_shows : has
|
||||||
|
users ||--|{ watched_shows : has
|
||||||
|
watched_shows ||--|o entries : next_entry
|
||||||
|
|
||||||
watched_entries {
|
history {
|
||||||
guid entry_id PK, FK
|
int id PK
|
||||||
guid user_id PK, FK
|
guid entry_id FK
|
||||||
|
guid user_id FK
|
||||||
uint time "in seconds, null of finished"
|
uint time "in seconds, null of finished"
|
||||||
uint progress "NN, from 0 to 100"
|
uint progress "NN, from 0 to 100"
|
||||||
datetime played_date
|
datetime played_date
|
||||||
}
|
}
|
||||||
entries ||--|{ watched_entries : has
|
entries ||--|{ history : part_of
|
||||||
|
users ||--|{ history : has
|
||||||
|
|
||||||
roles {
|
roles {
|
||||||
guid show_id PK, FK
|
guid show_id PK, FK
|
||||||
|
Loading…
x
Reference in New Issue
Block a user