import { ENTITY_MODIFICATION } from 'src/constant/global.constant'; import { BaseEntity } from 'src/module/meta/entity/base-entity.entity'; import { Column, Entity } from 'typeorm'; @Entity({ name: 'frm_wf_entity_modification' }) export class EntityModification extends BaseEntity { constructor() { super(); this.entity_type = ENTITY_MODIFICATION; } @Column({ type: 'int', nullable: true }) mapped_entity_id: number; @Column({ type: 'varchar', nullable: true }) mapped_entity_type: string; @Column({ type: 'varchar', nullable: true }) mode: string; @Column({ type: 'int', nullable: true }) stage_id: number; @Column({ type: 'int', nullable: true }) action_id: number; @Column({ type: 'varchar', nullable: true }) attribute_key: string; @Column({ type: 'varchar', nullable: true }) current_value: string; @Column({ type: 'varchar', nullable: true }) new_value: string; @Column({ type: 'varchar', nullable: true }) reason_code: string; }