diff --git a/src/entity/pharmacy/item_master.ts b/src/entity/pharmacy/item_master.ts index 5bbe252..6f3ff57 100644 --- a/src/entity/pharmacy/item_master.ts +++ b/src/entity/pharmacy/item_master.ts @@ -58,13 +58,9 @@ export class ItemMaster { factory!: Factory; @ManyToOne(() => Unit, { nullable: false }) - @JoinColumn({ name: "large_unit_id" }) - large_unit!: Unit; - - @ManyToOne(() => Unit, { nullable: false }) - @JoinColumn({ name: "small_unit_id" }) - small_unit!: Unit; - + @JoinColumn({ name: "unit_id" }) + unit!: Unit; + @Column({ type: "int", nullable: true,