import { Column, Entity, ManyToOne } from 'typeorm'; import { AbstractEntity } from '@/entities/abstract'; import { RetailerProductVariant } from '../RetailerProduct/RetailerProductVariant'; @Entity({ name: 'retailer_product_variant_update_history' }) export default class RetailerProductVariantUpdateHistory extends AbstractEntity { @ManyToOne(() => RetailerProductVariant, { nullable: false }) retailerProductVariant!: RetailerProductVariant; @Column({ type: 'float', nullable: true, }) price?: number; }