From 095178e006fc9c35c2e144643ff51478914dcc8c Mon Sep 17 00:00:00 2001
From: Ronnie Friman <L4168@student.jamk.fi>
Date: Sat, 6 Jul 2019 16:11:20 +0300
Subject: [PATCH] added column type

---
 src/notifications/notification.entity.ts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/notifications/notification.entity.ts b/src/notifications/notification.entity.ts
index 3df76ac..f9d5dca 100644
--- a/src/notifications/notification.entity.ts
+++ b/src/notifications/notification.entity.ts
@@ -12,11 +12,12 @@ import { GameEntity } from '../game/game.entity';
 @Entity('Notifications')
 export class NotificationEntity {
   @PrimaryGeneratedColumn('uuid') id: string;
+  @Column('text') type: string;
   @Column({ type: 'text' }) message: string;
   @CreateDateColumn() issued: Date;
 
   @ManyToOne(type => GameEntity, game => game.id, {
     onDelete: 'CASCADE',
   })
-  game: GameEntity;
+  game: string;
 }
-- 
GitLab