import { ENTITYTYPE_ENTITY_RELATION_DATA } from 'src/constant/global.constant'; import { Column, Entity } from 'typeorm'; import { BaseEntity } from './base-entity.entity'; @Entity({ name: 'frm_entity_relation_data' }) export class EntityRelationData extends BaseEntity { constructor() { super(); this.entity_type = ENTITYTYPE_ENTITY_RELATION_DATA; } @Column({ nullable: true }) source_entity_type: string; @Column({ nullable: true }) source_entity_id: number; @Column({ nullable: true }) target_entity_type: string; @Column({ nullable: true }) target_entity_id: number; @Column({ nullable: true }) relation_type: string; @Column({ nullable: true }) relation_id: number; }