fix relation
This commit is contained in:
@ -89,6 +89,10 @@ export class Goods {
|
||||
@JoinColumn({ name: 'supplier_id' })
|
||||
supplier: Supplier;
|
||||
|
||||
@ManyToOne(() => GoodsReceipt, (goodsReceipt) => goodsReceipt.goods, { nullable: true })
|
||||
@JoinColumn({ name: 'goods_receipt_id' })
|
||||
goodsReceipt: GoodsReceipt;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
type: 'uuid',
|
||||
|
||||
Reference in New Issue
Block a user