Skip to content
Snippets Groups Projects
Commit 6e88e9a8 authored by L4168's avatar L4168
Browse files

added relation to task entity

parent f89198f3
No related branches found
No related tags found
4 merge requests!59Development to master,!31Development,!25Dto service,!24Faction task edit
...@@ -12,10 +12,8 @@ import { ...@@ -12,10 +12,8 @@ import {
import { PersonEntity } from '../user/user.entity'; import { PersonEntity } from '../user/user.entity';
import { GameGroupEntity } from './group.entity'; import { GameGroupEntity } from './group.entity';
import { FactionEntity } from './faction.entity'; import { FactionEntity } from './faction.entity';
import { import { MapDrawingEntity } from './coordinate.entity';
MapDrawingEntity, import { TaskEntity } from '../task/task.entity';
Game_Person_MapDrawingEntity,
} from './coordinate.entity';
// table that stores all created games // table that stores all created games
@Entity('Game') @Entity('Game')
...@@ -40,6 +38,8 @@ export class GameEntity { ...@@ -40,6 +38,8 @@ export class GameEntity {
objective_points => objective_points.game, objective_points => objective_points.game,
) )
objective_points: ObjectivePointEntity[]; objective_points: ObjectivePointEntity[];
@OneToMany(type => TaskEntity, tasks => tasks.taskGame)
tasks: TaskEntity[];
gameObject() { gameObject() {
const { id, name } = this; const { id, name } = this;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment