remove asset_category goods relation

This commit is contained in:
fadlydev
2025-01-17 14:36:27 +07:00
parent 6457e72a51
commit 9cbfda0988

View File

@ -5,9 +5,7 @@ import {
CreateDateColumn,
UpdateDateColumn,
DeleteDateColumn,
OneToMany,
} from 'typeorm';
import { Goods } from './goods';
@Entity('asset_category')
export class AssetCategory {
@ -26,9 +24,6 @@ export class AssetCategory {
})
description: string;
@OneToMany(() => Goods, (goods) => goods.category_id)
goods: Goods[];
@Column()
@CreateDateColumn()
created_at: Date;