update : emr_room_medical_equipment
This commit is contained in:
50
src/entity/emr/emr_room_medical_equipment.ts
Normal file
50
src/entity/emr/emr_room_medical_equipment.ts
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
import {
|
||||||
|
Entity,
|
||||||
|
PrimaryGeneratedColumn,
|
||||||
|
Column,
|
||||||
|
CreateDateColumn,
|
||||||
|
UpdateDateColumn,
|
||||||
|
DeleteDateColumn,
|
||||||
|
JoinColumn,
|
||||||
|
OneToOne,
|
||||||
|
} from "typeorm";
|
||||||
|
|
||||||
|
import { RoomStock } from "../pharmacy-logistic/room_stock";
|
||||||
|
|
||||||
|
@Entity("emr_room_medical_equipment", { schema: "emr" })
|
||||||
|
export class EmrRoomMedicalEquipment {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@OneToOne(() => RoomStock, { onDelete: "CASCADE" })
|
||||||
|
@JoinColumn()
|
||||||
|
roomstock: RoomStock;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
type: "int",
|
||||||
|
nullable: false
|
||||||
|
})
|
||||||
|
qty: number;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
@CreateDateColumn()
|
||||||
|
created_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
created_by: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
@UpdateDateColumn()
|
||||||
|
updated_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
updated_by: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
@DeleteDateColumn()
|
||||||
|
deleted_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
deleted_by: string;
|
||||||
|
}
|
||||||
|
|
||||||
@ -21,6 +21,7 @@ export * from "../entity/emr/emr_radiology";
|
|||||||
export * from "../entity/emr/emr_radiology_services";
|
export * from "../entity/emr/emr_radiology_services";
|
||||||
export * from "../entity/emr/emr_compounding_medicine";
|
export * from "../entity/emr/emr_compounding_medicine";
|
||||||
export * from "../entity/emr/emr_compounding_medicine_item";
|
export * from "../entity/emr/emr_compounding_medicine_item";
|
||||||
|
export * from "../entity/emr/emr_room_medical_equipment";
|
||||||
|
|
||||||
export * from "../types/registration_type";
|
export * from "../types/registration_type";
|
||||||
export * from "../types/registration_status";
|
export * from "../types/registration_status";
|
||||||
|
|||||||
Reference in New Issue
Block a user