import { COMM_TEMPLATE } from 'src/constant/global.constant'; import { BaseEntity } from 'src/module/meta/entity/base-entity.entity'; import { Column, Entity } from 'typeorm'; @Entity({ name: 'frm_wf_comm_template' }) export class CommTemplate extends BaseEntity { constructor() { super(); this.entity_type = COMM_TEMPLATE; } @Column({ nullable: true }) mode: string; @Column({ type: 'varchar', nullable: true }) mapped_entity_type: string; @Column({ nullable: true }) subject: string; @Column({ nullable: true }) format_type: string; // if format_type is 'richtext', this field will be used @Column({ type: 'text', nullable: true }) rich_text: string; // if format_type is 'markup', this field will be used @Column({ nullable: true }) markup_id: number; @Column({ nullable: true }) is_template: boolean; @Column({ type: 'varchar', nullable: true }) flag: string; @Column({ type: 'varchar', nullable: true }) template_id: string; @Column({ type: 'int', nullable: true }) mapper_id: number; }