update
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user