remove relation with supplier

This commit is contained in:
fadlydev
2025-01-17 13:40:26 +07:00
parent 4e712c3eb8
commit 1f43c8517c

View File

@ -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',