update: entity in cashier item
This commit is contained in:
@ -14,6 +14,7 @@ import { Department } from "../department";
|
||||
import { ServiceClass } from "../service_class";
|
||||
import { Service } from "../service";
|
||||
import { ServiceType } from "../service_type";
|
||||
import { ItemType } from "../pharmacy/item_type";
|
||||
|
||||
@Entity("cashier_item", { schema: "cashier" })
|
||||
export class CashierItem {
|
||||
@ -24,6 +25,10 @@ export class CashierItem {
|
||||
@JoinColumn()
|
||||
service: Service;
|
||||
|
||||
@ManyToOne(() => ItemType, { onDelete: "CASCADE" })
|
||||
@JoinColumn()
|
||||
itemtype: ItemType;
|
||||
|
||||
@ManyToOne(() => ServiceType, { onDelete: "CASCADE" })
|
||||
@JoinColumn()
|
||||
servicetype: ServiceType;
|
||||
|
||||
@ -27,7 +27,7 @@ export class EmrRoomMedicalEquipment {
|
||||
@JoinColumn()
|
||||
patient: EmrPatient;
|
||||
|
||||
@OneToOne(() => RoomStock, { onDelete: "CASCADE" })
|
||||
@ManyToOne(() => RoomStock, { onDelete: "CASCADE" })
|
||||
@JoinColumn()
|
||||
roomstock: RoomStock;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user