From 56bfc413ae435429a07f57c891db4726d4f1c0d0 Mon Sep 17 00:00:00 2001 From: avicenan Date: Thu, 11 Jun 2026 08:27:32 +0900 Subject: [PATCH] change card print queue using incremental id instead of uuid --- src/entity/card_print_queue.ts | 104 ++++++++++++++++----------------- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/src/entity/card_print_queue.ts b/src/entity/card_print_queue.ts index e51fa18..de8d186 100644 --- a/src/entity/card_print_queue.ts +++ b/src/entity/card_print_queue.ts @@ -1,79 +1,79 @@ import { - Entity, - PrimaryGeneratedColumn, - Column, - CreateDateColumn, - UpdateDateColumn, - DeleteDateColumn, + Entity, + PrimaryGeneratedColumn, + Column, + CreateDateColumn, + UpdateDateColumn, + DeleteDateColumn, } from "typeorm"; import { CardPrintQueueStatus } from "../types/card_print_queue_status"; @Entity("card_print_queues") export class CardPrintQueue { - @PrimaryGeneratedColumn("uuid") - id!: string; + @PrimaryGeneratedColumn() + id!: string; - @Column({ type: "text", nullable: true }) - mrn?: string; + @Column({ type: "text", nullable: true }) + mrn?: string; - @Column({ type: "text", nullable: true }) - municipiu_code?: string; + @Column({ type: "text", nullable: true }) + municipiu_code?: string; - @Column({ type: "text", nullable: true }) - posto_adm_code?: string; + @Column({ type: "text", nullable: true }) + posto_adm_code?: string; - @Column({ type: "text", nullable: true }) - name?: string; + @Column({ type: "text", nullable: true }) + name?: string; - @Column({ type: "text", nullable: true }) - address?: string; + @Column({ type: "text", nullable: true }) + address?: string; - @Column({ type: "text", nullable: true }) - municipiu?: string; + @Column({ type: "text", nullable: true }) + municipiu?: string; - @Column({ type: "text", nullable: true }) - posto_adm?: string; + @Column({ type: "text", nullable: true }) + posto_adm?: string; - @Column({ type: "text", nullable: true }) - suco?: string; + @Column({ type: "text", nullable: true }) + suco?: string; - @Column({ type: "text", nullable: true }) - aldeia?: string; + @Column({ type: "text", nullable: true }) + aldeia?: string; - @Column({ type: "text", nullable: true }) - sexo?: string; + @Column({ type: "text", nullable: true }) + sexo?: string; - @Column({ type: "text", nullable: true }) - birthdate?: string; + @Column({ type: "text", nullable: true }) + birthdate?: string; - @Column({ type: "text", nullable: true }) - patient_id?: string; + @Column({ type: "text", nullable: true }) + patient_id?: string; - @Column({ type: "text", nullable: true }) - facility_code?: string; + @Column({ type: "text", nullable: true }) + facility_code?: string; - @Column({ - type: "enum", - enum: CardPrintQueueStatus, - default: CardPrintQueueStatus.PENDING, - }) - status!: CardPrintQueueStatus; + @Column({ + type: "enum", + enum: CardPrintQueueStatus, + default: CardPrintQueueStatus.PENDING, + }) + status!: CardPrintQueueStatus; - @CreateDateColumn() - created_at!: Date; + @CreateDateColumn() + created_at!: Date; - @Column({ nullable: true, length: 256 }) - created_by?: string; + @Column({ nullable: true, length: 256 }) + created_by?: string; - @UpdateDateColumn({ nullable: true }) - updated_at?: Date; + @UpdateDateColumn({ nullable: true }) + updated_at?: Date; - @Column({ nullable: true, length: 256 }) - updated_by?: string; + @Column({ nullable: true, length: 256 }) + updated_by?: string; - @DeleteDateColumn({ nullable: true }) - deleted_at?: Date; + @DeleteDateColumn({ nullable: true }) + deleted_at?: Date; - @Column({ nullable: true, length: 256 }) - deleted_by?: string; + @Column({ nullable: true, length: 256 }) + deleted_by?: string; }