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