From 13d41ed0acb83869b2fe62a737f2c2900c1ea1d1 Mon Sep 17 00:00:00 2001 From: realrafi Date: Sat, 1 Aug 2026 00:11:55 +0330 Subject: [PATCH] refactor: changed notification entity by adding subject and message --- .../notifications/entities/notification.entity.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/modules/notifications/entities/notification.entity.ts b/src/modules/notifications/entities/notification.entity.ts index b960421..b99434e 100644 --- a/src/modules/notifications/entities/notification.entity.ts +++ b/src/modules/notifications/entities/notification.entity.ts @@ -10,6 +10,17 @@ export class AppNotification extends BaseEntity { }) isRead: boolean; + @Column({ + type: 'varchar', + length: 100 + }) + subject: string; + + @Column({ + type: 'text' + }) + message: string; + @ManyToOne(() => User, (user) => user.notifications) receiver: User;