add ref hospital

This commit is contained in:
Rayhan Ardiansyah
2026-03-06 15:40:25 +07:00
parent 18a858013a
commit 22bacf8e01
2 changed files with 42 additions and 0 deletions

View 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;
}

View File

@ -31,6 +31,7 @@ export * from "../entity/hospital_information"
export * from "../entity/patient_group"
export * from "../entity/patient_guarantor"
export * from "../entity/user_to_room"
export * from "../entity/refferal_hospital"
export * from "../types/action";
export * from "../types/error";