This commit is contained in:
wayanrivan
2026-04-01 16:55:07 +07:00
parent c5fbaf52e4
commit ab3e417d8a

View File

@ -8,6 +8,7 @@ import {
ManyToOne, ManyToOne,
OneToOne, OneToOne,
JoinColumn, JoinColumn,
OneToMany,
} from "typeorm"; } from "typeorm";
import { EmrRegistration } from "./emr_registration"; import { EmrRegistration } from "./emr_registration";
@ -71,7 +72,7 @@ export class EmrRegistrationOutpatient {
@Column({ nullable: true, length: 256 }) @Column({ nullable: true, length: 256 })
registration_number: string; registration_number: string;
@OneToOne(() => EmrInternalConsultation, { onDelete: "SET NULL", nullable: true }) @ManyToOne(() => EmrInternalConsultation, { onDelete: "SET NULL", nullable: true })
@JoinColumn() @JoinColumn()
ref_consultation: EmrInternalConsultation | null; ref_consultation: EmrInternalConsultation | null;