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";