Merge branch 'main' of https://git.shiblysolution.id/SAUDE-TL/entity
This commit is contained in:
@ -7,15 +7,21 @@ import {
|
||||
DeleteDateColumn,
|
||||
JoinColumn,
|
||||
OneToOne,
|
||||
ManyToOne,
|
||||
} from "typeorm";
|
||||
|
||||
import { EmrRegistrationOutpatient } from "./emr_registration_outpatient";
|
||||
import { EmrPatient } from "./emr_patient";
|
||||
|
||||
@Entity("emr_physical_examination", { schema: "emr" })
|
||||
export class EmrPhysicalExamination {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ManyToOne(() => EmrPatient, { onDelete: "CASCADE" })
|
||||
@JoinColumn()
|
||||
patient: EmrPatient;
|
||||
|
||||
@OneToOne(() => EmrRegistrationOutpatient, { onDelete: "CASCADE" })
|
||||
@JoinColumn()
|
||||
registration_outpatient: EmrRegistrationOutpatient;
|
||||
|
||||
@ -47,7 +47,7 @@ export class ItemMaster {
|
||||
|
||||
@ManyToOne(() => ItemClassDetail, { nullable: false })
|
||||
@JoinColumn({ name: "item_class_detail_id" })
|
||||
class_detail!: ItemClassDetail;
|
||||
item_class_detail!: ItemClassDetail;
|
||||
|
||||
@ManyToOne(() => ItemStatus, { nullable: false })
|
||||
@JoinColumn({ name: "item_status_id" })
|
||||
|
||||
Reference in New Issue
Block a user