From 7cf09d85fe8a82d6cc31b45a6f7500fe4d9ecf1a Mon Sep 17 00:00:00 2001 From: wayanrivan Date: Tue, 24 Feb 2026 11:21:18 +0700 Subject: [PATCH] hospital information done --- src/entity/hospital_information.ts | 56 ++++++++++++++++++++++++++++++ src/schema/public.ts | 1 + 2 files changed, 57 insertions(+) create mode 100644 src/entity/hospital_information.ts diff --git a/src/entity/hospital_information.ts b/src/entity/hospital_information.ts new file mode 100644 index 0000000..82e50a5 --- /dev/null +++ b/src/entity/hospital_information.ts @@ -0,0 +1,56 @@ +import { + Entity, + PrimaryGeneratedColumn, + Column, + CreateDateColumn, + UpdateDateColumn, + DeleteDateColumn, +} from 'typeorm'; + +@Entity('hospital_information') +export class HospitalInformation { + @PrimaryGeneratedColumn('uuid') + id: string; + + @Column({ + type: 'text', + nullable: false, + }) + name: string; + + @Column({ + type: 'text', + nullable: false, + }) + address: string; + + @Column({ + type: 'text', + nullable: false, + }) + phone: string; + + @Column({ + type: 'text', + nullable: false, + }) + logo: string; + + @CreateDateColumn() + created_at: Date; + + @Column({ nullable: true, length: 256 }) + created_by: string; + + @UpdateDateColumn({ nullable: true }) + updated_at: Date; + + @Column({ nullable: true, length: 256 }) + updated_by: string; + + @DeleteDateColumn({ nullable: true }) + deleted_at: Date; + + @Column({ nullable: true, length: 256 }) + deleted_by: string; +} diff --git a/src/schema/public.ts b/src/schema/public.ts index 7b5aec9..7e647ed 100644 --- a/src/schema/public.ts +++ b/src/schema/public.ts @@ -27,6 +27,7 @@ export * from "../entity/examination_detail" export * from "../entity/examination_type" export * from "../entity/examination_detail" export * from "../entity/measurement_unit" +export * from "../entity/hospital_information" export * from "../types/action"; export * from "../types/error";