import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm'; import { BaseEntity } from '../../meta/entity/base-entity.entity'; import { ENTITYTYPE_LISTMASTER } from '../../../constant/global.constant'; @Entity({ name: 'frm_list_master' }) @Index('idx_list_master_type_org', ['type', 'organization_id']) export class ListMasterData extends BaseEntity { constructor() { super(); this.entity_type = ENTITYTYPE_LISTMASTER; } @Column({nullable: true}) type: string; @Column({nullable: true}) sort_by: string; @Column({nullable: true}) is_factory: number; @Column({nullable: true}) source: string; @Column({ nullable: true }) source_list: string; @Column({ nullable: true }) custom_source_id: number; @Column({ nullable: true, default: '' }) description: string; }