feat: added fields in entities to support rar decompression progress, and real debrid api token settings

This commit is contained in:
lilezek 2024-04-29 20:52:53 +02:00
parent 6fa4c178a7
commit 3ef2f87412
5 changed files with 34 additions and 5 deletions

View file

@ -34,6 +34,9 @@ export class Game {
@Column("text", { nullable: true })
executablePath: string | null;
@Column("text", { nullable: true })
rarPath: string | null;
@Column("int", { default: 0 })
playTimeInMilliseconds: number;
@ -43,12 +46,18 @@ export class Game {
@Column("text", { nullable: true })
status: GameStatus | "";
/**
* Progress is a float between 0 and 1
*/
@Column("float", { default: 0 })
progress: number;
@Column("float", { default: 0 })
fileVerificationProgress: number;
@Column("float", { default: 0 })
decompressionProgress: number;
@Column("int", { default: 0 })
bytesDownloaded: number;

View file

@ -17,6 +17,9 @@ export class UserPreferences {
@Column("text", { default: "en" })
language: string;
@Column("text", { nullable: true })
realDebridApiToken: string | null;
@Column("boolean", { default: false })
downloadNotificationsEnabled: boolean;
@ -32,3 +35,4 @@ export class UserPreferences {
@UpdateDateColumn()
updatedAt: Date;
}