fix(card-print-queue): add column type of printing
This commit is contained in:
@ -7,6 +7,8 @@ import {
|
|||||||
DeleteDateColumn,
|
DeleteDateColumn,
|
||||||
} from "typeorm";
|
} from "typeorm";
|
||||||
import { CardPrintQueueStatus } from "../types/card_print_queue_status";
|
import { CardPrintQueueStatus } from "../types/card_print_queue_status";
|
||||||
|
import { CardPrintQueueType } from "../types/card_print_queue_type";
|
||||||
|
|
||||||
|
|
||||||
@Entity("card_print_queues")
|
@Entity("card_print_queues")
|
||||||
export class CardPrintQueue {
|
export class CardPrintQueue {
|
||||||
@ -59,6 +61,13 @@ export class CardPrintQueue {
|
|||||||
})
|
})
|
||||||
status!: CardPrintQueueStatus;
|
status!: CardPrintQueueStatus;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
type: "enum",
|
||||||
|
enum: CardPrintQueueType,
|
||||||
|
default: CardPrintQueueType.PRINT_PROVISION,
|
||||||
|
})
|
||||||
|
type!: CardPrintQueueType;
|
||||||
|
|
||||||
@CreateDateColumn()
|
@CreateDateColumn()
|
||||||
created_at!: Date;
|
created_at!: Date;
|
||||||
|
|
||||||
|
|||||||
@ -74,3 +74,5 @@ export * from "../types/specialist_form";
|
|||||||
export * from "../types/diagnosis_type";
|
export * from "../types/diagnosis_type";
|
||||||
export * from "../types/notification_priority";
|
export * from "../types/notification_priority";
|
||||||
export * from "../types/card_print_queue_status";
|
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