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