From e7f26d675e52b65357fdb3784af3583a8a4abfe1 Mon Sep 17 00:00:00 2001 From: Shibly Teknologi Solusi Date: Mon, 18 May 2026 11:42:13 +0700 Subject: [PATCH] update --- src/entity/inpatient_room_bed_details.ts | 75 ++++++++++++++++++++++++ src/schema/public.ts | 1 + 2 files changed, 76 insertions(+) create mode 100644 src/entity/inpatient_room_bed_details.ts diff --git a/src/entity/inpatient_room_bed_details.ts b/src/entity/inpatient_room_bed_details.ts new file mode 100644 index 0000000..f4f13ae --- /dev/null +++ b/src/entity/inpatient_room_bed_details.ts @@ -0,0 +1,75 @@ +import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, ManyToOne, JoinColumn } from "typeorm"; +import { InpatientRoomBed } from "./inpatient_room_beds"; + +@Entity("inpatient_room_bed_details") +export class InpatientRoomBedDetail { + @PrimaryGeneratedColumn("uuid") + id: string; + + @ManyToOne(() => InpatientRoomBed, { onDelete: "NO ACTION" }) + @JoinColumn() + inpatient_room_bed: InpatientRoomBed; + + @Column({ nullable: true, type: "text" }) + photo_before: string; + + @Column({ nullable: true, type: "text" }) + photo_after: string; + + @Column({ nullable: true, type: "boolean", default: false }) + electrical: boolean; + + @Column({ nullable: true, type: "boolean", default: false }) + telephone: boolean; + + @Column({ nullable: true, type: "boolean", default: false }) + lighting: boolean; + + @Column({ nullable: true, type: "boolean", default: false }) + wall: boolean; + + @Column({ nullable: true, type: "boolean", default: false }) + ceiling: boolean; + + @Column({ nullable: true, type: "boolean", default: false }) + floor: boolean; + + @Column({ nullable: true, type: "boolean", default: false }) + leakage: boolean; + + @Column({ nullable: true, type: "boolean", default: false }) + temperature: boolean; + + @Column({ nullable: true, type: "boolean", default: false }) + electromedical_equipment: boolean; + + @Column({ nullable: true, type: "boolean", default: false }) + available: boolean; + + @Column({ nullable: true, type: "boolean", default: false }) + online_inpatient_referral: boolean; + + @Column({ nullable: true, type: "boolean", default: false }) + cohort: boolean; + + @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; +} diff --git a/src/schema/public.ts b/src/schema/public.ts index ccd022b..16d312c 100644 --- a/src/schema/public.ts +++ b/src/schema/public.ts @@ -12,6 +12,7 @@ export * from "../entity/application"; export * from "../entity/currencies"; export * from "../entity/inpatient_rooms"; export * from "../entity/inpatient_room_beds"; +export * from "../entity/inpatient_room_bed_details"; export * from "../entity/surgery_room"; export * from "../entity/surgery_type"; export * from "../entity/nationality";