remove asset_category goods relation
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user