mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Small cleanups
This commit is contained in:
parent
47729d8373
commit
d6cae5ace1
@ -98,7 +98,7 @@ erDiagram
|
|||||||
datetime next_refresh
|
datetime next_refresh
|
||||||
jsonb external_id
|
jsonb external_id
|
||||||
}
|
}
|
||||||
|
|
||||||
season_translations {
|
season_translations {
|
||||||
guid id PK,FK
|
guid id PK,FK
|
||||||
string language PK
|
string language PK
|
||||||
@ -107,17 +107,17 @@ erDiagram
|
|||||||
jsonb poster
|
jsonb poster
|
||||||
jsonb banner
|
jsonb banner
|
||||||
jsonb logo
|
jsonb logo
|
||||||
jsonb thumbnail
|
jsonb thumbnail
|
||||||
}
|
}
|
||||||
seasons ||--|{ season_translations : has
|
seasons ||--|{ season_translations : has
|
||||||
seasons ||--o{ entries : has
|
seasons ||--o{ entries : has
|
||||||
shows ||--|{ seasons : has
|
shows ||--|{ seasons : has
|
||||||
|
|
||||||
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|droped|planned"
|
||||||
uint seen_entry_count "NN"
|
uint seen_entry_count "NN"
|
||||||
}
|
}
|
||||||
shows ||--|{ watched_shows : has
|
shows ||--|{ watched_shows : has
|
||||||
|
|
||||||
@ -129,7 +129,7 @@ erDiagram
|
|||||||
datetime played_date
|
datetime played_date
|
||||||
}
|
}
|
||||||
entries ||--|{ watched_entries : has
|
entries ||--|{ watched_entries : has
|
||||||
|
|
||||||
roles {
|
roles {
|
||||||
guid show_id PK, FK
|
guid show_id PK, FK
|
||||||
guid staff_id PK, FK
|
guid staff_id PK, FK
|
||||||
@ -152,7 +152,7 @@ erDiagram
|
|||||||
datetime next_refresh
|
datetime next_refresh
|
||||||
jsonb external_id
|
jsonb external_id
|
||||||
}
|
}
|
||||||
|
|
||||||
staff_translations {
|
staff_translations {
|
||||||
guid id PK,FK
|
guid id PK,FK
|
||||||
string language PK
|
string language PK
|
||||||
|
BIN
api/bun.lockb
BIN
api/bun.lockb
Binary file not shown.
@ -1,7 +0,0 @@
|
|||||||
import { db } from "./db";
|
|
||||||
import { videos } from "./db/schema/videos";
|
|
||||||
import { Video } from "./models/video";
|
|
||||||
|
|
||||||
const seed = async () =>{
|
|
||||||
db.insert(videos).values(Video.examples)
|
|
||||||
};
|
|
@ -1,3 +1,3 @@
|
|||||||
// remove indent in multi-line comments
|
// remove indent in multi-line comments
|
||||||
export const comment = (str: TemplateStringsArray) =>
|
export const comment = (str: TemplateStringsArray, ...values: any[]) =>
|
||||||
str.toString().replace(/^\s+/gm, "");
|
str.reduce((acc, str, i) => `${acc}${str}${values[i]}`).replace(/^\s+/gm, "");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user