mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feature: wip-game-achievements
refactor: rename files
This commit is contained in:
parent
fabeedaa8a
commit
8fb62af0cf
18 changed files with 739 additions and 0 deletions
21
src/main/entity/game-achievements.entity.ts
Normal file
21
src/main/entity/game-achievements.entity.ts
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import {
|
||||
Column,
|
||||
Entity,
|
||||
JoinColumn,
|
||||
OneToOne,
|
||||
PrimaryGeneratedColumn,
|
||||
} from "typeorm";
|
||||
import { Game } from "./game.entity";
|
||||
|
||||
@Entity("game_achievement")
|
||||
export class GameAchievement {
|
||||
@PrimaryGeneratedColumn()
|
||||
id: number;
|
||||
|
||||
@OneToOne(() => Game)
|
||||
@JoinColumn()
|
||||
game: Game;
|
||||
|
||||
@Column("text", { nullable: true })
|
||||
achievements: string;
|
||||
}
|
||||
|
|
@ -2,6 +2,8 @@ export * from "./game.entity";
|
|||
export * from "./repack.entity";
|
||||
export * from "./user-preferences.entity";
|
||||
export * from "./game-shop-cache.entity";
|
||||
export * from "./game.entity";
|
||||
export * from "./game-achievements.entity";
|
||||
export * from "./download-source.entity";
|
||||
export * from "./download-queue.entity";
|
||||
export * from "./user-auth";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue