This commit is contained in:
2026-04-17 14:18:49 +07:00
parent 756fab67db
commit 78e3751eb7
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,45 @@
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, ManyToOne, JoinColumn } from "typeorm";
import { Room } from "./room";
@Entity("inpatient_rooms")
export class InpatientRoom {
@PrimaryGeneratedColumn("uuid")
id: string;
@ManyToOne(() => Room, { onDelete: "NO ACTION" })
@JoinColumn()
room: Room;
@Column({
nullable: false,
type: "text",
})
name: string;
@Column({
nullable: false,
type: "int",
})
number_of_bed: 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;
}

View File

@ -10,6 +10,7 @@ export * from "../entity/munisipo";
export * from "../entity/suco";
export * from "../entity/application";
export * from "../entity/currencies";
export * from "../entity/inpatient_rooms";
export * from "../entity/nationality";
export * from "../entity/diagnosis";
export * from "../entity/diagnostic_procedure";