import { BaseEntity } from 'src/module/meta/entity/base-entity.entity'; import { Column, Entity } from 'typeorm'; @Entity({ name: 'frm_notification' }) export class NotificationData extends BaseEntity { @Column({ name: 'user_id', type: 'int', nullable: true }) user_id: number | null; @Column({ name: 'event_type', type: 'varchar', length: 255, nullable: true }) event_type: string | null; @Column({ name: 'message', type: 'text', nullable: true }) message: string | null; @Column({ nullable: true }) mapped_entity_id: number; @Column({ nullable: true }) mapped_entity_type: string; @Column({ nullable: true }) task_id: number; @Column({ name: 'is_read', type: 'boolean', default: false }) is_read: boolean; }