From 22bacf8e018042620a47731e85d470205993dac4 Mon Sep 17 00:00:00 2001 From: Rayhan Ardiansyah Date: Fri, 6 Mar 2026 15:40:25 +0700 Subject: [PATCH] add ref hospital --- src/entity/refferal_hospital.ts | 41 +++++++++++++++++++++++++++++++++ src/schema/public.ts | 1 + 2 files changed, 42 insertions(+) create mode 100644 src/entity/refferal_hospital.ts diff --git a/src/entity/refferal_hospital.ts b/src/entity/refferal_hospital.ts new file mode 100644 index 0000000..e051610 --- /dev/null +++ b/src/entity/refferal_hospital.ts @@ -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; + } \ No newline at end of file diff --git a/src/schema/public.ts b/src/schema/public.ts index 63520bd..3c84b9a 100644 --- a/src/schema/public.ts +++ b/src/schema/public.ts @@ -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";