mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-23 15:30:34 -04:00
Format stuff
This commit is contained in:
parent
98c6263036
commit
019be569dd
@ -121,12 +121,8 @@
|
|||||||
"tableFrom": "entries",
|
"tableFrom": "entries",
|
||||||
"tableTo": "shows",
|
"tableTo": "shows",
|
||||||
"schemaTo": "kyoo",
|
"schemaTo": "kyoo",
|
||||||
"columnsFrom": [
|
"columnsFrom": ["show_pk"],
|
||||||
"show_pk"
|
"columnsTo": ["pk"],
|
||||||
],
|
|
||||||
"columnsTo": [
|
|
||||||
"pk"
|
|
||||||
],
|
|
||||||
"onDelete": "cascade",
|
"onDelete": "cascade",
|
||||||
"onUpdate": "no action"
|
"onUpdate": "no action"
|
||||||
}
|
}
|
||||||
@ -136,25 +132,17 @@
|
|||||||
"entries_id_unique": {
|
"entries_id_unique": {
|
||||||
"name": "entries_id_unique",
|
"name": "entries_id_unique",
|
||||||
"nullsNotDistinct": false,
|
"nullsNotDistinct": false,
|
||||||
"columns": [
|
"columns": ["id"]
|
||||||
"id"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"entries_slug_unique": {
|
"entries_slug_unique": {
|
||||||
"name": "entries_slug_unique",
|
"name": "entries_slug_unique",
|
||||||
"nullsNotDistinct": false,
|
"nullsNotDistinct": false,
|
||||||
"columns": [
|
"columns": ["slug"]
|
||||||
"slug"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"entries_showPk_seasonNumber_episodeNumber_unique": {
|
"entries_showPk_seasonNumber_episodeNumber_unique": {
|
||||||
"name": "entries_showPk_seasonNumber_episodeNumber_unique",
|
"name": "entries_showPk_seasonNumber_episodeNumber_unique",
|
||||||
"nullsNotDistinct": false,
|
"nullsNotDistinct": false,
|
||||||
"columns": [
|
"columns": ["show_pk", "season_number", "episode_number"]
|
||||||
"show_pk",
|
|
||||||
"season_number",
|
|
||||||
"episode_number"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"policies": {},
|
"policies": {},
|
||||||
@ -214,12 +202,8 @@
|
|||||||
"tableFrom": "entry_translations",
|
"tableFrom": "entry_translations",
|
||||||
"tableTo": "entries",
|
"tableTo": "entries",
|
||||||
"schemaTo": "kyoo",
|
"schemaTo": "kyoo",
|
||||||
"columnsFrom": [
|
"columnsFrom": ["pk"],
|
||||||
"pk"
|
"columnsTo": ["pk"],
|
||||||
],
|
|
||||||
"columnsTo": [
|
|
||||||
"pk"
|
|
||||||
],
|
|
||||||
"onDelete": "cascade",
|
"onDelete": "cascade",
|
||||||
"onUpdate": "no action"
|
"onUpdate": "no action"
|
||||||
}
|
}
|
||||||
@ -227,10 +211,7 @@
|
|||||||
"compositePrimaryKeys": {
|
"compositePrimaryKeys": {
|
||||||
"entry_translations_pk_language_pk": {
|
"entry_translations_pk_language_pk": {
|
||||||
"name": "entry_translations_pk_language_pk",
|
"name": "entry_translations_pk_language_pk",
|
||||||
"columns": [
|
"columns": ["pk", "language"]
|
||||||
"pk",
|
|
||||||
"language"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"uniqueConstraints": {},
|
"uniqueConstraints": {},
|
||||||
@ -292,12 +273,8 @@
|
|||||||
"tableFrom": "season_translations",
|
"tableFrom": "season_translations",
|
||||||
"tableTo": "seasons",
|
"tableTo": "seasons",
|
||||||
"schemaTo": "kyoo",
|
"schemaTo": "kyoo",
|
||||||
"columnsFrom": [
|
"columnsFrom": ["pk"],
|
||||||
"pk"
|
"columnsTo": ["pk"],
|
||||||
],
|
|
||||||
"columnsTo": [
|
|
||||||
"pk"
|
|
||||||
],
|
|
||||||
"onDelete": "cascade",
|
"onDelete": "cascade",
|
||||||
"onUpdate": "no action"
|
"onUpdate": "no action"
|
||||||
}
|
}
|
||||||
@ -305,10 +282,7 @@
|
|||||||
"compositePrimaryKeys": {
|
"compositePrimaryKeys": {
|
||||||
"season_translations_pk_language_pk": {
|
"season_translations_pk_language_pk": {
|
||||||
"name": "season_translations_pk_language_pk",
|
"name": "season_translations_pk_language_pk",
|
||||||
"columns": [
|
"columns": ["pk", "language"]
|
||||||
"pk",
|
|
||||||
"language"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"uniqueConstraints": {},
|
"uniqueConstraints": {},
|
||||||
@ -418,12 +392,8 @@
|
|||||||
"tableFrom": "seasons",
|
"tableFrom": "seasons",
|
||||||
"tableTo": "shows",
|
"tableTo": "shows",
|
||||||
"schemaTo": "kyoo",
|
"schemaTo": "kyoo",
|
||||||
"columnsFrom": [
|
"columnsFrom": ["show_pk"],
|
||||||
"show_pk"
|
"columnsTo": ["pk"],
|
||||||
],
|
|
||||||
"columnsTo": [
|
|
||||||
"pk"
|
|
||||||
],
|
|
||||||
"onDelete": "cascade",
|
"onDelete": "cascade",
|
||||||
"onUpdate": "no action"
|
"onUpdate": "no action"
|
||||||
}
|
}
|
||||||
@ -433,24 +403,17 @@
|
|||||||
"seasons_id_unique": {
|
"seasons_id_unique": {
|
||||||
"name": "seasons_id_unique",
|
"name": "seasons_id_unique",
|
||||||
"nullsNotDistinct": false,
|
"nullsNotDistinct": false,
|
||||||
"columns": [
|
"columns": ["id"]
|
||||||
"id"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"seasons_slug_unique": {
|
"seasons_slug_unique": {
|
||||||
"name": "seasons_slug_unique",
|
"name": "seasons_slug_unique",
|
||||||
"nullsNotDistinct": false,
|
"nullsNotDistinct": false,
|
||||||
"columns": [
|
"columns": ["slug"]
|
||||||
"slug"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"seasons_showPk_seasonNumber_unique": {
|
"seasons_showPk_seasonNumber_unique": {
|
||||||
"name": "seasons_showPk_seasonNumber_unique",
|
"name": "seasons_showPk_seasonNumber_unique",
|
||||||
"nullsNotDistinct": false,
|
"nullsNotDistinct": false,
|
||||||
"columns": [
|
"columns": ["show_pk", "season_number"]
|
||||||
"show_pk",
|
|
||||||
"season_number"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"policies": {},
|
"policies": {},
|
||||||
@ -572,12 +535,8 @@
|
|||||||
"tableFrom": "show_translations",
|
"tableFrom": "show_translations",
|
||||||
"tableTo": "shows",
|
"tableTo": "shows",
|
||||||
"schemaTo": "kyoo",
|
"schemaTo": "kyoo",
|
||||||
"columnsFrom": [
|
"columnsFrom": ["pk"],
|
||||||
"pk"
|
"columnsTo": ["pk"],
|
||||||
],
|
|
||||||
"columnsTo": [
|
|
||||||
"pk"
|
|
||||||
],
|
|
||||||
"onDelete": "cascade",
|
"onDelete": "cascade",
|
||||||
"onUpdate": "no action"
|
"onUpdate": "no action"
|
||||||
}
|
}
|
||||||
@ -585,10 +544,7 @@
|
|||||||
"compositePrimaryKeys": {
|
"compositePrimaryKeys": {
|
||||||
"show_translations_pk_language_pk": {
|
"show_translations_pk_language_pk": {
|
||||||
"name": "show_translations_pk_language_pk",
|
"name": "show_translations_pk_language_pk",
|
||||||
"columns": [
|
"columns": ["pk", "language"]
|
||||||
"pk",
|
|
||||||
"language"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"uniqueConstraints": {},
|
"uniqueConstraints": {},
|
||||||
@ -760,12 +716,8 @@
|
|||||||
"tableFrom": "shows",
|
"tableFrom": "shows",
|
||||||
"tableTo": "shows",
|
"tableTo": "shows",
|
||||||
"schemaTo": "kyoo",
|
"schemaTo": "kyoo",
|
||||||
"columnsFrom": [
|
"columnsFrom": ["collection_pk"],
|
||||||
"collection_pk"
|
"columnsTo": ["pk"],
|
||||||
],
|
|
||||||
"columnsTo": [
|
|
||||||
"pk"
|
|
||||||
],
|
|
||||||
"onDelete": "set null",
|
"onDelete": "set null",
|
||||||
"onUpdate": "no action"
|
"onUpdate": "no action"
|
||||||
}
|
}
|
||||||
@ -775,16 +727,12 @@
|
|||||||
"shows_id_unique": {
|
"shows_id_unique": {
|
||||||
"name": "shows_id_unique",
|
"name": "shows_id_unique",
|
||||||
"nullsNotDistinct": false,
|
"nullsNotDistinct": false,
|
||||||
"columns": [
|
"columns": ["id"]
|
||||||
"id"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"shows_slug_unique": {
|
"shows_slug_unique": {
|
||||||
"name": "shows_slug_unique",
|
"name": "shows_slug_unique",
|
||||||
"nullsNotDistinct": false,
|
"nullsNotDistinct": false,
|
||||||
"columns": [
|
"columns": ["slug"]
|
||||||
"slug"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"policies": {},
|
"policies": {},
|
||||||
@ -830,12 +778,8 @@
|
|||||||
"tableFrom": "entry_video_join",
|
"tableFrom": "entry_video_join",
|
||||||
"tableTo": "entries",
|
"tableTo": "entries",
|
||||||
"schemaTo": "kyoo",
|
"schemaTo": "kyoo",
|
||||||
"columnsFrom": [
|
"columnsFrom": ["entry"],
|
||||||
"entry"
|
"columnsTo": ["pk"],
|
||||||
],
|
|
||||||
"columnsTo": [
|
|
||||||
"pk"
|
|
||||||
],
|
|
||||||
"onDelete": "cascade",
|
"onDelete": "cascade",
|
||||||
"onUpdate": "no action"
|
"onUpdate": "no action"
|
||||||
},
|
},
|
||||||
@ -844,12 +788,8 @@
|
|||||||
"tableFrom": "entry_video_join",
|
"tableFrom": "entry_video_join",
|
||||||
"tableTo": "videos",
|
"tableTo": "videos",
|
||||||
"schemaTo": "kyoo",
|
"schemaTo": "kyoo",
|
||||||
"columnsFrom": [
|
"columnsFrom": ["video"],
|
||||||
"video"
|
"columnsTo": ["pk"],
|
||||||
],
|
|
||||||
"columnsTo": [
|
|
||||||
"pk"
|
|
||||||
],
|
|
||||||
"onDelete": "cascade",
|
"onDelete": "cascade",
|
||||||
"onUpdate": "no action"
|
"onUpdate": "no action"
|
||||||
}
|
}
|
||||||
@ -857,19 +797,14 @@
|
|||||||
"compositePrimaryKeys": {
|
"compositePrimaryKeys": {
|
||||||
"entry_video_join_entry_video_pk": {
|
"entry_video_join_entry_video_pk": {
|
||||||
"name": "entry_video_join_entry_video_pk",
|
"name": "entry_video_join_entry_video_pk",
|
||||||
"columns": [
|
"columns": ["entry", "video"]
|
||||||
"entry",
|
|
||||||
"video"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"entry_video_join_slug_unique": {
|
"entry_video_join_slug_unique": {
|
||||||
"name": "entry_video_join_slug_unique",
|
"name": "entry_video_join_slug_unique",
|
||||||
"nullsNotDistinct": false,
|
"nullsNotDistinct": false,
|
||||||
"columns": [
|
"columns": ["slug"]
|
||||||
"slug"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"policies": {},
|
"policies": {},
|
||||||
@ -951,16 +886,12 @@
|
|||||||
"videos_id_unique": {
|
"videos_id_unique": {
|
||||||
"name": "videos_id_unique",
|
"name": "videos_id_unique",
|
||||||
"nullsNotDistinct": false,
|
"nullsNotDistinct": false,
|
||||||
"columns": [
|
"columns": ["id"]
|
||||||
"id"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"videos_path_unique": {
|
"videos_path_unique": {
|
||||||
"name": "videos_path_unique",
|
"name": "videos_path_unique",
|
||||||
"nullsNotDistinct": false,
|
"nullsNotDistinct": false,
|
||||||
"columns": [
|
"columns": ["path"]
|
||||||
"path"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"policies": {},
|
"policies": {},
|
||||||
@ -981,13 +912,7 @@
|
|||||||
"kyoo.entry_type": {
|
"kyoo.entry_type": {
|
||||||
"name": "entry_type",
|
"name": "entry_type",
|
||||||
"schema": "kyoo",
|
"schema": "kyoo",
|
||||||
"values": [
|
"values": ["unknown", "episode", "movie", "special", "extra"]
|
||||||
"unknown",
|
|
||||||
"episode",
|
|
||||||
"movie",
|
|
||||||
"special",
|
|
||||||
"extra"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"kyoo.genres": {
|
"kyoo.genres": {
|
||||||
"name": "genres",
|
"name": "genres",
|
||||||
@ -1021,21 +946,12 @@
|
|||||||
"kyoo.show_kind": {
|
"kyoo.show_kind": {
|
||||||
"name": "show_kind",
|
"name": "show_kind",
|
||||||
"schema": "kyoo",
|
"schema": "kyoo",
|
||||||
"values": [
|
"values": ["serie", "movie", "collection"]
|
||||||
"serie",
|
|
||||||
"movie",
|
|
||||||
"collection"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"kyoo.show_status": {
|
"kyoo.show_status": {
|
||||||
"name": "show_status",
|
"name": "show_status",
|
||||||
"schema": "kyoo",
|
"schema": "kyoo",
|
||||||
"values": [
|
"values": ["unknown", "finished", "airing", "planned"]
|
||||||
"unknown",
|
|
||||||
"finished",
|
|
||||||
"airing",
|
|
||||||
"planned"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"schemas": {
|
"schemas": {
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { t } from "elysia";
|
import { t } from "elysia";
|
||||||
import type { Prettify } from "~/utils";
|
import type { Prettify } from "~/utils";
|
||||||
|
import { SeedCollection } from "./collections";
|
||||||
import { bubble, registerExamples } from "./examples";
|
import { bubble, registerExamples } from "./examples";
|
||||||
import { bubbleImages } from "./examples/bubble";
|
import { bubbleImages } from "./examples/bubble";
|
||||||
import {
|
import {
|
||||||
@ -12,7 +13,6 @@ import {
|
|||||||
TranslationRecord,
|
TranslationRecord,
|
||||||
} from "./utils";
|
} from "./utils";
|
||||||
import { Video } from "./video";
|
import { Video } from "./video";
|
||||||
import { SeedCollection } from "./collections";
|
|
||||||
|
|
||||||
export const MovieStatus = t.UnionEnum(["unknown", "finished", "planned"]);
|
export const MovieStatus = t.UnionEnum(["unknown", "finished", "planned"]);
|
||||||
export type MovieStatus = typeof MovieStatus.static;
|
export type MovieStatus = typeof MovieStatus.static;
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
import { t } from "elysia";
|
import { t } from "elysia";
|
||||||
|
import type { Prettify } from "~/utils";
|
||||||
|
import { SeedCollection } from "./collections";
|
||||||
import { SeedEntry, SeedExtra } from "./entry";
|
import { SeedEntry, SeedExtra } from "./entry";
|
||||||
import { bubbleImages, madeInAbyss, registerExamples } from "./examples";
|
import { bubbleImages, madeInAbyss, registerExamples } from "./examples";
|
||||||
import { SeedSeason } from "./season";
|
import { SeedSeason } from "./season";
|
||||||
@ -7,8 +9,6 @@ import { Genre } from "./utils/genres";
|
|||||||
import { Image, SeedImage } from "./utils/image";
|
import { Image, SeedImage } from "./utils/image";
|
||||||
import { Language, TranslationRecord } from "./utils/language";
|
import { Language, TranslationRecord } from "./utils/language";
|
||||||
import { Resource } from "./utils/resource";
|
import { Resource } from "./utils/resource";
|
||||||
import { Prettify } from "~/utils";
|
|
||||||
import { SeedCollection } from "./collections";
|
|
||||||
|
|
||||||
export const SerieStatus = t.UnionEnum([
|
export const SerieStatus = t.UnionEnum([
|
||||||
"unknown",
|
"unknown",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user