refactor: moved the game status to a global file (accessible to the render part) and used it in game entity

This commit is contained in:
lilezek 2024-04-29 20:50:10 +02:00
parent c6e4ba4789
commit 6fa4c178a7
13 changed files with 26 additions and 20 deletions

View file

@ -9,6 +9,7 @@ import {
} from "typeorm";
import type { GameShop } from "@types";
import { Repack } from "./repack.entity";
import { GameStatus } from "@globals";
@Entity("game")
export class Game {
@ -40,7 +41,7 @@ export class Game {
shop: GameShop;
@Column("text", { nullable: true })
status: string;
status: GameStatus | "";
@Column("float", { default: 0 })
progress: number;