update
This commit is contained in:
45
src/entity/inpatient_rooms.ts
Normal file
45
src/entity/inpatient_rooms.ts
Normal 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;
|
||||||
|
}
|
||||||
@ -10,6 +10,7 @@ export * from "../entity/munisipo";
|
|||||||
export * from "../entity/suco";
|
export * from "../entity/suco";
|
||||||
export * from "../entity/application";
|
export * from "../entity/application";
|
||||||
export * from "../entity/currencies";
|
export * from "../entity/currencies";
|
||||||
|
export * from "../entity/inpatient_rooms";
|
||||||
export * from "../entity/nationality";
|
export * from "../entity/nationality";
|
||||||
export * from "../entity/diagnosis";
|
export * from "../entity/diagnosis";
|
||||||
export * from "../entity/diagnostic_procedure";
|
export * from "../entity/diagnostic_procedure";
|
||||||
|
|||||||
Reference in New Issue
Block a user