mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: starting showing local achievements
This commit is contained in:
parent
5b0cf1e82b
commit
7e3cf0a00e
25 changed files with 102 additions and 12 deletions
|
|
@ -5,14 +5,14 @@ import {
|
|||
OneToOne,
|
||||
PrimaryGeneratedColumn,
|
||||
} from "typeorm";
|
||||
import { Game } from "./game.entity";
|
||||
import type { Game } from "./game.entity";
|
||||
|
||||
@Entity("game_achievement")
|
||||
export class GameAchievement {
|
||||
@PrimaryGeneratedColumn()
|
||||
id: number;
|
||||
|
||||
@OneToOne(() => Game)
|
||||
@OneToOne("Game", "achievements")
|
||||
@JoinColumn()
|
||||
game: Game;
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ import { Repack } from "./repack.entity";
|
|||
import type { GameShop, GameStatus } from "@types";
|
||||
import { Downloader } from "@shared";
|
||||
import type { DownloadQueue } from "./download-queue.entity";
|
||||
import { GameAchievement } from "./game-achievements.entity";
|
||||
|
||||
@Entity("game")
|
||||
export class Game {
|
||||
|
|
@ -76,6 +77,9 @@ export class Game {
|
|||
@JoinColumn()
|
||||
repack: Repack;
|
||||
|
||||
@OneToOne("GameAchievement", "game")
|
||||
achievements: GameAchievement;
|
||||
|
||||
@OneToOne("DownloadQueue", "game")
|
||||
downloadQueue: DownloadQueue;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue