add ref hospital
This commit is contained in:
41
src/entity/refferal_hospital.ts
Normal file
41
src/entity/refferal_hospital.ts
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
import {
|
||||||
|
Entity,
|
||||||
|
PrimaryGeneratedColumn,
|
||||||
|
Column,
|
||||||
|
CreateDateColumn,
|
||||||
|
UpdateDateColumn,
|
||||||
|
DeleteDateColumn,
|
||||||
|
} from "typeorm";
|
||||||
|
|
||||||
|
@Entity("refferal_hospital")
|
||||||
|
export class RefferalHospital {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id!: string;
|
||||||
|
|
||||||
|
@Column({ type: "text", nullable: false })
|
||||||
|
refferal_hospital_name!: string;
|
||||||
|
|
||||||
|
// Tanggal pembuatan grup pasien
|
||||||
|
@CreateDateColumn()
|
||||||
|
created_at!: Date;
|
||||||
|
|
||||||
|
// Kolom untuk tracking siapa yang membuat data ini
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
created_by?: string;
|
||||||
|
|
||||||
|
// Tanggal pembaruan data grup pasien
|
||||||
|
@UpdateDateColumn({ nullable: true })
|
||||||
|
updated_at?: Date;
|
||||||
|
|
||||||
|
// Kolom untuk tracking siapa yang memperbarui data ini
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
updated_by?: string;
|
||||||
|
|
||||||
|
// Tanggal penghapusan grup pasien
|
||||||
|
@DeleteDateColumn({ nullable: true })
|
||||||
|
deleted_at?: Date;
|
||||||
|
|
||||||
|
// Kolom untuk tracking siapa yang menghapus data ini
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
deleted_by?: string;
|
||||||
|
}
|
||||||
@ -31,6 +31,7 @@ export * from "../entity/hospital_information"
|
|||||||
export * from "../entity/patient_group"
|
export * from "../entity/patient_group"
|
||||||
export * from "../entity/patient_guarantor"
|
export * from "../entity/patient_guarantor"
|
||||||
export * from "../entity/user_to_room"
|
export * from "../entity/user_to_room"
|
||||||
|
export * from "../entity/refferal_hospital"
|
||||||
|
|
||||||
export * from "../types/action";
|
export * from "../types/action";
|
||||||
export * from "../types/error";
|
export * from "../types/error";
|
||||||
|
|||||||
Reference in New Issue
Block a user