import { BaseEntity } from './base-entity.entity'; import { ENTITYTYPE_ENTITYMASTER } from '../../../constant/global.constant'; import { Column, Entity, Index } from 'typeorm'; @Entity({ name: 'frm_entity_master' }) @Index('idx_entity_master_mapped_type_org', [ 'mapped_entity_type', 'organization_id', ]) export class EntityMaster extends BaseEntity { constructor() { super(); this.entity_type = ENTITYTYPE_ENTITYMASTER; } @Column({ name: 'mapped_entity_type', type: 'varchar', length: 50, nullable: false, }) mapped_entity_type: string; @Column({ name: 'appcode', type: 'varchar', length: 50, nullable: true }) appcode: string; @Column({ name: 'category', type: 'varchar', length: 50, nullable: true }) category: string; @Column({ name: 'module', type: 'varchar', length: 200, nullable: true }) module: string; @Column({ name: 'entity_data_class', type: 'varchar', length: 200, nullable: true, }) entity_data_class: string; @Column({ name: 'entity_service', type: 'varchar', length: 200, nullable: true, }) entity_service: string; @Column({ name: 'db_table_name', type: 'varchar', length: 200, nullable: true, }) db_table_name: string; @Column({ name: 'description', type: 'varchar', length: 200, nullable: true, }) description: string; @Column({ name: 'storage_type', nullable: true, length: 20 }) storage_type: string; @Column({ name: 'show_in_entity_list', nullable: true, length: 20 }) show_in_entity_list: string; @Column({ name: 'code_entry', nullable: true, length: 20 }) code_entry: string; @Column({ name: 'applicable_level', nullable: true, length: 20 }) applicable_level: string; @Column({ name: 'data_source', nullable: true }) data_source: string; @Column({ name: 'is_workflow', nullable: true }) is_workflow: boolean; @Column({ name: 'doc_upload_path', nullable: true, length: 50 }) doc_upload_path: string; @Column({ name: 'overwrite_path', type: 'int', nullable: true }) overwrite_path: number; @Column({ name: 'is_flag_json', nullable: true }) is_flag_json: boolean; }