refactor: changed notification entity by adding subject and message
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user