baf9dd8dfe3152e4ea104de0a9b83471b6e92368

This commit is contained in:
GitHub Actions
2024-04-09 23:30:27 +00:00
commit 9403236d7e
146 changed files with 37505 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
import {
Entity,
PrimaryGeneratedColumn,
Column,
CreateDateColumn,
UpdateDateColumn,
OneToOne,
JoinColumn,
} from "typeorm";
import type { GameShop } from "@types";
import { Repack } from "./repack.entity";
@Entity("game")
export class Game {
@PrimaryGeneratedColumn()
id: number;
@Column("text", { unique: true })
objectID: string;
@Column("text")
title: string;
@Column("text")
iconUrl: string;
@Column("text", { nullable: true })
folderName: string | null;
@Column("text", { nullable: true })
downloadPath: string | null;
@Column("text")
shop: GameShop;
@Column("text")
status: string;
@Column("float", { default: 0 })
progress: number;
@Column("float", { default: 0 })
fileVerificationProgress: number;
@Column("int", { default: 0 })
bytesDownloaded: number;
@Column("float", { default: 0 })
fileSize: number;
@OneToOne(() => Repack)
@JoinColumn()
repack: Repack;
@CreateDateColumn()
createdAt: Date;
@UpdateDateColumn()
updatedAt: Date;
}