update: update relation in external consultation
This commit is contained in:
@ -8,6 +8,7 @@ import {
|
|||||||
OneToOne,
|
OneToOne,
|
||||||
JoinColumn,
|
JoinColumn,
|
||||||
ManyToOne,
|
ManyToOne,
|
||||||
|
OneToMany,
|
||||||
} from "typeorm";
|
} from "typeorm";
|
||||||
import { RefferalHospital } from "../refferal_hospital";
|
import { RefferalHospital } from "../refferal_hospital";
|
||||||
import { EmrRegistration } from "./emr_registration";
|
import { EmrRegistration } from "./emr_registration";
|
||||||
@ -17,11 +18,11 @@ export class EmrExternalConsultation {
|
|||||||
@PrimaryGeneratedColumn("uuid")
|
@PrimaryGeneratedColumn("uuid")
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@OneToOne(() => RefferalHospital, { onDelete: "CASCADE" })
|
@ManyToOne(() => RefferalHospital,{ onDelete: "CASCADE" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
refferalhospital: RefferalHospital;
|
refferalhospital: RefferalHospital;
|
||||||
|
|
||||||
@OneToOne(() => EmrRegistration, { onDelete: "CASCADE" })
|
@ManyToOne(() => EmrRegistration, { onDelete: "CASCADE" })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
emrregistration: EmrRegistration;
|
emrregistration: EmrRegistration;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user