import { ENTITYTYPE_ENTITYTABLECOLUMN } from '../../../constant/global.constant'; import { Column, Entity } from 'typeorm'; import { BaseEntity } from './base-entity.entity'; @Entity({ name: 'frm_entity_table_column' }) export class EntityTableColumn extends BaseEntity { constructor() { super(); this.entity_type = ENTITYTYPE_ENTITYTABLECOLUMN; } @Column({ name: 'mapped_entity_type', nullable: true }) mapped_entity_type: string; @Column({ name: 'menu_code', nullable: true }) menu_code: string; @Column({ name: 'table_name', nullable: true }) table_name: string; @Column({ name: 'col_position', nullable: true }) col_position: number; @Column({ name: 'sortable', nullable: true }) sortable: string; @Column({ name: 'searchable', nullable: true }) searchable: string; @Column({ name: 'attribute_key', nullable: true }) attribute_key: string; @Column({ name: 'sort_type', nullable: true }) sort_type: string; @Column({ name: 'data_type', nullable: true }) data_type: string; @Column({ name: 'data_source_type', type: 'varchar', nullable: true, length: 50, }) data_source_type: string; @Column({ name: 'datasource_list', type: 'varchar', nullable: true }) datasource_list: string; @Column({ name: 'visible', nullable: true }) visible: string; @Column({ nullable: true }) display_type: string; @Column({ name: 'align', nullable: true }) align: string; @Column({ name: 'size', nullable: true }) size: number; }