change card print queue using incremental id instead of uuid
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user