hospital information done

This commit is contained in:
wayanrivan
2026-02-24 11:21:18 +07:00
parent f20071638c
commit 7cf09d85fe
2 changed files with 57 additions and 0 deletions

View File

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

View File

@ -27,6 +27,7 @@ export * from "../entity/examination_detail"
export * from "../entity/examination_type" export * from "../entity/examination_type"
export * from "../entity/examination_detail" export * from "../entity/examination_detail"
export * from "../entity/measurement_unit" export * from "../entity/measurement_unit"
export * from "../entity/hospital_information"
export * from "../types/action"; export * from "../types/action";
export * from "../types/error"; export * from "../types/error";