diff --git a/src/entity/refferal_hospital.ts b/src/entity/refferal_hospital.ts index e051610..d290f7a 100644 --- a/src/entity/refferal_hospital.ts +++ b/src/entity/refferal_hospital.ts @@ -1,41 +1,44 @@ 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 + Entity, + PrimaryGeneratedColumn, + Column, + CreateDateColumn, + UpdateDateColumn, + DeleteDateColumn, +} from "typeorm"; + +@Entity("refferal_hospital") +export class RefferalHospital { + @PrimaryGeneratedColumn("uuid") + id!: string; + + @Column({ type: "number", nullable: true }) + order_number: number; + + @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