From 1f43c8517c95690a1bfd1c92211c6939d9130e53 Mon Sep 17 00:00:00 2001 From: fadlydev Date: Fri, 17 Jan 2025 13:40:26 +0700 Subject: [PATCH] remove relation with supplier --- src/entity/goods.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/entity/goods.ts b/src/entity/goods.ts index 85e9aee..8f2b10c 100644 --- a/src/entity/goods.ts +++ b/src/entity/goods.ts @@ -11,7 +11,6 @@ import { } from 'typeorm'; import { Status } from '../types/status'; -import { Supplier } from './supplier'; import { AssetCategory } from './asset_category'; @Entity('goods') @@ -67,7 +66,7 @@ export class Goods { nullable: true, type: 'uuid', }) - created_by: string; + created_by: string; @Index() @Column({ @@ -76,10 +75,6 @@ export class Goods { }) updated_by: string; - @ManyToOne(() => Supplier, { nullable: false }) - @JoinColumn({ name: 'supplier_id' }) - supplier: Supplier; - @Column({ nullable: false, type: 'uuid',