remove relation asset_category

This commit is contained in:
fadlydev
2025-01-17 13:46:11 +07:00
parent 1f43c8517c
commit 6457e72a51

View File

@ -6,12 +6,9 @@ import {
UpdateDateColumn,
DeleteDateColumn,
Index,
ManyToOne,
JoinColumn,
} from 'typeorm';
import { Status } from '../types/status';
import { AssetCategory } from './asset_category';
@Entity('goods')
export class Goods {
@ -51,10 +48,7 @@ export class Goods {
})
quantity: number;
@ManyToOne(() => AssetCategory, (category) => category.goods, { nullable: true })
@JoinColumn({ name: 'category_id' })
category: AssetCategory;
@Index()
@Column({
nullable: true,
type: 'uuid',