Feat: add insert product history status at upload product csv
This commit is contained in:
20
src/product/entities/product-history-status.entity.ts
Normal file
20
src/product/entities/product-history-status.entity.ts
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
import { Column, Entity, ManyToOne, PrimaryGeneratedColumn } from 'typeorm';
|
||||||
|
import { Product } from './product.entity';
|
||||||
|
import { BaseModel } from '../../config/basemodel.entity';
|
||||||
|
import { productType } from '../../helper/enum-list';
|
||||||
|
import { Partner } from '../../users/entities/partner.entity';
|
||||||
|
|
||||||
|
@Entity()
|
||||||
|
export class ProductHistoryStatus extends BaseModel {
|
||||||
|
@PrimaryGeneratedColumn('uuid')
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => Product, (product) => product.id)
|
||||||
|
product: Product;
|
||||||
|
|
||||||
|
@ManyToOne(() => Partner, (partner) => partner.id)
|
||||||
|
partner: Partner;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
status: string;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user