update diet
This commit is contained in:
@ -9,8 +9,8 @@ import {
|
||||
JoinColumn,
|
||||
ManyToOne,
|
||||
} from "typeorm";
|
||||
import { EmrRegistrationOutpatient } from "./emr_registration_outpatient";
|
||||
import { EmrPatient } from "./emr_patient";
|
||||
import { EmrRegistration } from "./emr_registration";
|
||||
|
||||
@Entity("emr_diet", { schema: "emr" })
|
||||
export class EmrDiet {
|
||||
@ -21,9 +21,9 @@ export class EmrDiet {
|
||||
@JoinColumn()
|
||||
patient: EmrPatient;
|
||||
|
||||
@OneToOne(() => EmrRegistrationOutpatient, { onDelete: "CASCADE" })
|
||||
@OneToOne(() => EmrRegistration, { onDelete: "CASCADE" })
|
||||
@JoinColumn()
|
||||
registration_outpatient: EmrRegistrationOutpatient;
|
||||
registration: EmrRegistration;
|
||||
|
||||
@Column({ nullable: true, type: "text" })
|
||||
diet: string;
|
||||
|
||||
Reference in New Issue
Block a user