diff --git a/src/game/game.entity.ts b/src/game/game.entity.ts index 3b36297c022992a43b7a4999fc9eccba1b493b27..036b31c8a3cf1d0343c8f31c691a50d749d97d0f 100644 --- a/src/game/game.entity.ts +++ b/src/game/game.entity.ts @@ -12,10 +12,8 @@ import { import { PersonEntity } from '../user/user.entity'; import { GameGroupEntity } from './group.entity'; import { FactionEntity } from './faction.entity'; -import { - MapDrawingEntity, - Game_Person_MapDrawingEntity, -} from './coordinate.entity'; +import { MapDrawingEntity } from './coordinate.entity'; +import { TaskEntity } from '../task/task.entity'; // table that stores all created games @Entity('Game') @@ -40,6 +38,8 @@ export class GameEntity { objective_points => objective_points.game, ) objective_points: ObjectivePointEntity[]; + @OneToMany(type => TaskEntity, tasks => tasks.taskGame) + tasks: TaskEntity[]; gameObject() { const { id, name } = this;