change card print queue using incremental id instead of uuid
This commit is contained in:
@ -1,79 +1,79 @@
|
|||||||
import {
|
import {
|
||||||
Entity,
|
Entity,
|
||||||
PrimaryGeneratedColumn,
|
PrimaryGeneratedColumn,
|
||||||
Column,
|
Column,
|
||||||
CreateDateColumn,
|
CreateDateColumn,
|
||||||
UpdateDateColumn,
|
UpdateDateColumn,
|
||||||
DeleteDateColumn,
|
DeleteDateColumn,
|
||||||
} from "typeorm";
|
} from "typeorm";
|
||||||
import { CardPrintQueueStatus } from "../types/card_print_queue_status";
|
import { CardPrintQueueStatus } from "../types/card_print_queue_status";
|
||||||
|
|
||||||
@Entity("card_print_queues")
|
@Entity("card_print_queues")
|
||||||
export class CardPrintQueue {
|
export class CardPrintQueue {
|
||||||
@PrimaryGeneratedColumn("uuid")
|
@PrimaryGeneratedColumn()
|
||||||
id!: string;
|
id!: string;
|
||||||
|
|
||||||
@Column({ type: "text", nullable: true })
|
@Column({ type: "text", nullable: true })
|
||||||
mrn?: string;
|
mrn?: string;
|
||||||
|
|
||||||
@Column({ type: "text", nullable: true })
|
@Column({ type: "text", nullable: true })
|
||||||
municipiu_code?: string;
|
municipiu_code?: string;
|
||||||
|
|
||||||
@Column({ type: "text", nullable: true })
|
@Column({ type: "text", nullable: true })
|
||||||
posto_adm_code?: string;
|
posto_adm_code?: string;
|
||||||
|
|
||||||
@Column({ type: "text", nullable: true })
|
@Column({ type: "text", nullable: true })
|
||||||
name?: string;
|
name?: string;
|
||||||
|
|
||||||
@Column({ type: "text", nullable: true })
|
@Column({ type: "text", nullable: true })
|
||||||
address?: string;
|
address?: string;
|
||||||
|
|
||||||
@Column({ type: "text", nullable: true })
|
@Column({ type: "text", nullable: true })
|
||||||
municipiu?: string;
|
municipiu?: string;
|
||||||
|
|
||||||
@Column({ type: "text", nullable: true })
|
@Column({ type: "text", nullable: true })
|
||||||
posto_adm?: string;
|
posto_adm?: string;
|
||||||
|
|
||||||
@Column({ type: "text", nullable: true })
|
@Column({ type: "text", nullable: true })
|
||||||
suco?: string;
|
suco?: string;
|
||||||
|
|
||||||
@Column({ type: "text", nullable: true })
|
@Column({ type: "text", nullable: true })
|
||||||
aldeia?: string;
|
aldeia?: string;
|
||||||
|
|
||||||
@Column({ type: "text", nullable: true })
|
@Column({ type: "text", nullable: true })
|
||||||
sexo?: string;
|
sexo?: string;
|
||||||
|
|
||||||
@Column({ type: "text", nullable: true })
|
@Column({ type: "text", nullable: true })
|
||||||
birthdate?: string;
|
birthdate?: string;
|
||||||
|
|
||||||
@Column({ type: "text", nullable: true })
|
@Column({ type: "text", nullable: true })
|
||||||
patient_id?: string;
|
patient_id?: string;
|
||||||
|
|
||||||
@Column({ type: "text", nullable: true })
|
@Column({ type: "text", nullable: true })
|
||||||
facility_code?: string;
|
facility_code?: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
type: "enum",
|
type: "enum",
|
||||||
enum: CardPrintQueueStatus,
|
enum: CardPrintQueueStatus,
|
||||||
default: CardPrintQueueStatus.PENDING,
|
default: CardPrintQueueStatus.PENDING,
|
||||||
})
|
})
|
||||||
status!: CardPrintQueueStatus;
|
status!: CardPrintQueueStatus;
|
||||||
|
|
||||||
@CreateDateColumn()
|
@CreateDateColumn()
|
||||||
created_at!: Date;
|
created_at!: Date;
|
||||||
|
|
||||||
@Column({ nullable: true, length: 256 })
|
@Column({ nullable: true, length: 256 })
|
||||||
created_by?: string;
|
created_by?: string;
|
||||||
|
|
||||||
@UpdateDateColumn({ nullable: true })
|
@UpdateDateColumn({ nullable: true })
|
||||||
updated_at?: Date;
|
updated_at?: Date;
|
||||||
|
|
||||||
@Column({ nullable: true, length: 256 })
|
@Column({ nullable: true, length: 256 })
|
||||||
updated_by?: string;
|
updated_by?: string;
|
||||||
|
|
||||||
@DeleteDateColumn({ nullable: true })
|
@DeleteDateColumn({ nullable: true })
|
||||||
deleted_at?: Date;
|
deleted_at?: Date;
|
||||||
|
|
||||||
@Column({ nullable: true, length: 256 })
|
@Column({ nullable: true, length: 256 })
|
||||||
deleted_by?: string;
|
deleted_by?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user