import { Column, Entity } from 'typeorm'; import { BaseEntity } from './base-entity.entity'; import { ENTITYTYPE_MEDIA } from '../../../constant/global.constant'; @Entity({ name: 'frm_media_data' }) export class MediaData extends BaseEntity { constructor() { super(); this.entity_type = ENTITYTYPE_MEDIA; } @Column({ type: 'varchar', length: 100, nullable: true }) file_name: string; @Column({ type: 'varchar', length: 100, nullable: true }) mapped_attribute_key: string; @Column({ type: 'varchar', length: 50, nullable: true }) mapped_entity_type: string; @Column({ type: 'bigint', nullable: true }) mapped_entity_id: number; @Column({ type: 'varchar', length: 200, nullable: true }) media_url: string; @Column({ type: 'varchar', length: 30, nullable: true }) extension: string; @Column({ type: 'varchar', length: 50, nullable: true }) content_type: string; @Column({ type: 'json', nullable: true }) review_info: string; }