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