From 5025efd6950d93fe38f8e72ae423289919270c0f Mon Sep 17 00:00:00 2001 From: Rayhan Ardiansyah Date: Mon, 2 Mar 2026 10:51:16 +0700 Subject: [PATCH] update entity phar item master --- src/entity/pharmacy/item_master.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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,