fix(card-print-queue): add column type of printing
This commit is contained in:
@ -7,6 +7,8 @@ import {
|
||||
DeleteDateColumn,
|
||||
} from "typeorm";
|
||||
import { CardPrintQueueStatus } from "../types/card_print_queue_status";
|
||||
import { CardPrintQueueType } from "../types/card_print_queue_type";
|
||||
|
||||
|
||||
@Entity("card_print_queues")
|
||||
export class CardPrintQueue {
|
||||
@ -59,6 +61,13 @@ export class CardPrintQueue {
|
||||
})
|
||||
status!: CardPrintQueueStatus;
|
||||
|
||||
@Column({
|
||||
type: "enum",
|
||||
enum: CardPrintQueueType,
|
||||
default: CardPrintQueueType.PRINT_PROVISION,
|
||||
})
|
||||
type!: CardPrintQueueType;
|
||||
|
||||
@CreateDateColumn()
|
||||
created_at!: Date;
|
||||
|
||||
|
||||
@ -74,3 +74,5 @@ export * from "../types/specialist_form";
|
||||
export * from "../types/diagnosis_type";
|
||||
export * from "../types/notification_priority";
|
||||
export * from "../types/card_print_queue_status";
|
||||
export * from "../types/card_print_queue_type";
|
||||
|
||||
|
||||
4
src/types/card_print_queue_type.ts
Normal file
4
src/types/card_print_queue_type.ts
Normal file
@ -0,0 +1,4 @@
|
||||
export enum CardPrintQueueType {
|
||||
PRINT_PROVISION = "print_provision",
|
||||
PROVISION = "provision",
|
||||
}
|
||||
Reference in New Issue
Block a user