diff --git a/src/game/game.entity.ts b/src/game/game.entity.ts index b58066590357070155b28bbd046083454527b8e6..030e81d3960bcb536b419e8a9915d11daa45b744 100644 --- a/src/game/game.entity.ts +++ b/src/game/game.entity.ts @@ -14,6 +14,7 @@ import { PersonEntity } from '../user/user.entity'; import { GameGroupEntity } from '../faction/faction.entity'; import { FactionEntity } from '../faction/faction.entity'; import { TaskEntity } from '../task/task.entity'; +import { CenterDTO } from './game.json.dto'; // table that stores all created games @Entity('Game') @@ -21,7 +22,7 @@ export class GameEntity { @PrimaryGeneratedColumn('uuid') id: string; @Column('text') name: string; @Column('text') desc: string; - @Column('json') center: JSON; + @Column('json') center: CenterDTO; @Column({ type: 'json', nullable: true }) map: JSON; @Column({ type: 'json', nullable: true }) nodesettings?: JSON; @Column('timestamp') startdate: Timestamp;