import { WORKFLOW_AUTOMATION } from 'src/constant/global.constant'; import { BaseEntity } from 'src/module/meta/entity/base-entity.entity'; import { Column, Entity } from 'typeorm'; @Entity({ name: 'frm_wf_automation' }) export class WorkflowAutomation extends BaseEntity { constructor() { super(); this.entity_type = WORKFLOW_AUTOMATION; } @Column({ type: 'varchar', nullable: true }) description: string; @Column({ type: 'varchar', nullable: true }) mapped_entity_type: string; @Column({ type: 'varchar', nullable: true }) trigger_event: string; @Column({ type: 'varchar', nullable: true }) condition_filter_code: string; @Column({ type: 'varchar', nullable: true }) criteria_filter_code: string; @Column({ type: 'varchar', nullable: true }) trigger_type: string; @Column({ type: 'varchar', nullable: true }) applicable_entity_type: string; @Column({ type: 'json', nullable: true }) schedule: string; @Column({ type: 'varchar', nullable: true }) cron_type: string; @Column({ type: 'int', nullable: true }) sequence: number; }