feat: adding download queue

This commit is contained in:
Chubby Granny Chaser
2024-06-04 15:33:47 +01:00
parent 0b68ddda78
commit 73b4b2c13c
27 changed files with 615 additions and 458 deletions

View File

@@ -12,6 +12,7 @@ import { Repack } from "./repack.entity";
import type { GameShop } from "@types";
import { Downloader } from "@shared";
import type { Aria2Status } from "aria2";
import type { DownloadQueue } from "./download-queue.entity";
@Entity("game")
export class Game {
@@ -66,10 +67,16 @@ export class Game {
@Column("text", { nullable: true })
uri: string | null;
@OneToOne(() => Repack, { nullable: true })
/**
* @deprecated
*/
@OneToOne("Repack", "game", { nullable: true })
@JoinColumn()
repack: Repack;
@OneToOne("DownloadQueue", "game")
downloadQueue: DownloadQueue;
@Column("boolean", { default: false })
isDeleted: boolean;