From ab3e417d8abdb0acc2a08a1ed13a6bc378de62a3 Mon Sep 17 00:00:00 2001 From: wayanrivan Date: Wed, 1 Apr 2026 16:55:07 +0700 Subject: [PATCH] update --- src/entity/emr/emr_registration_outpatient.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/entity/emr/emr_registration_outpatient.ts b/src/entity/emr/emr_registration_outpatient.ts index 052347e..f17c64a 100644 --- a/src/entity/emr/emr_registration_outpatient.ts +++ b/src/entity/emr/emr_registration_outpatient.ts @@ -8,6 +8,7 @@ import { ManyToOne, OneToOne, JoinColumn, + OneToMany, } from "typeorm"; import { EmrRegistration } from "./emr_registration"; @@ -71,7 +72,7 @@ export class EmrRegistrationOutpatient { @Column({ nullable: true, length: 256 }) registration_number: string; - @OneToOne(() => EmrInternalConsultation, { onDelete: "SET NULL", nullable: true }) + @ManyToOne(() => EmrInternalConsultation, { onDelete: "SET NULL", nullable: true }) @JoinColumn() ref_consultation: EmrInternalConsultation | null;