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