feat: adding auto refresh of download sources

This commit is contained in:
Chubby Granny Chaser
2024-06-03 21:39:37 +01:00
parent 3da751a67b
commit 0ea2cd39db
19 changed files with 241 additions and 93 deletions

View File

@@ -7,6 +7,7 @@ import {
OneToMany,
} from "typeorm";
import { Repack } from "./repack.entity";
import { DownloadSourceStatus } from "@shared";
@Entity("download_source")
export class DownloadSource {
@@ -19,6 +20,12 @@ export class DownloadSource {
@Column("text")
name: string;
@Column("text", { nullable: true })
etag: string | null;
@Column("text", { default: "online" })
status: DownloadSourceStatus;
@OneToMany(() => Repack, (repack) => repack.downloadSource, { cascade: true })
repacks: Repack[];