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

This commit is contained in:
2026-05-10 22:21:01 +02:00
parent aa4c181b0c
commit 1ed3afd2e2
6 changed files with 52 additions and 35 deletions
@@ -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;