feat(refferal-hospital): add column of order number for ordering

This commit is contained in:
avicenan
2026-05-27 11:48:38 +09:00
parent 4be58af318
commit 42519b6f97

View File

@ -5,13 +5,16 @@ import {
CreateDateColumn, CreateDateColumn,
UpdateDateColumn, UpdateDateColumn,
DeleteDateColumn, DeleteDateColumn,
} from "typeorm"; } from "typeorm";
@Entity("refferal_hospital") @Entity("refferal_hospital")
export class RefferalHospital { export class RefferalHospital {
@PrimaryGeneratedColumn("uuid") @PrimaryGeneratedColumn("uuid")
id!: string; id!: string;
@Column({ type: "number", nullable: true })
order_number: number;
@Column({ type: "text", nullable: false }) @Column({ type: "text", nullable: false })
refferal_hospital_name!: string; refferal_hospital_name!: string;
@ -38,4 +41,4 @@ import {
// Kolom untuk tracking siapa yang menghapus data ini // Kolom untuk tracking siapa yang menghapus data ini
@Column({ nullable: true, length: 256 }) @Column({ nullable: true, length: 256 })
deleted_by?: string; deleted_by?: string;
} }