update
This commit is contained in:
75
src/entity/inpatient_room_bed_details.ts
Normal file
75
src/entity/inpatient_room_bed_details.ts
Normal file
@ -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;
|
||||
}
|
||||
@ -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";
|
||||
|
||||
Reference in New Issue
Block a user