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;
|
isRead: boolean;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
type: 'varchar',
|
||||||
|
length: 100
|
||||||
|
})
|
||||||
|
subject: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
type: 'text'
|
||||||
|
})
|
||||||
|
message: string;
|
||||||
|
|
||||||
@ManyToOne(() => User, (user) => user.notifications)
|
@ManyToOne(() => User, (user) => user.notifications)
|
||||||
receiver: User;
|
receiver: User;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user