feat: add database indexes, implement CORS configuration, and lazy-load frontend routes
Build and Push Multi-Platform Images / build-and-push (push) Successful in 35s
Build and Push Multi-Platform Images / build-and-push (push) Successful in 35s
This commit is contained in:
@@ -2,6 +2,7 @@ import {
|
||||
Entity,
|
||||
PrimaryGeneratedColumn,
|
||||
Column,
|
||||
Index,
|
||||
CreateDateColumn,
|
||||
} from 'typeorm';
|
||||
|
||||
@@ -10,6 +11,7 @@ export class LabelPrintJob {
|
||||
@PrimaryGeneratedColumn()
|
||||
Id!: number;
|
||||
|
||||
@Index()
|
||||
@Column({ type: 'varchar', length: 20, default: 'pending' })
|
||||
Status!: 'pending' | 'printed' | 'error';
|
||||
|
||||
@@ -28,6 +30,7 @@ export class LabelPrintJob {
|
||||
@Column({ type: 'simple-json', nullable: true })
|
||||
LabelVariables!: Record<string, string> | null;
|
||||
|
||||
@Index()
|
||||
@Column({ type: 'datetime', nullable: true })
|
||||
LockedAt!: Date | null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user