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 {
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;
......
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