Add product dimensions and downloadable design specification sheet

- Add printAreaWidthMm and printAreaHeightMm fields to Product model
- Create API endpoint to generate design specs with CM measurements
- Add download button to order detail page
- Specs include design elements with positions/sizes in centimeters
This commit is contained in:
Andymick
2026-07-18 10:29:37 +01:00
parent ac61d95ac8
commit 4d9cfa4023
4 changed files with 269 additions and 0 deletions
@@ -0,0 +1,3 @@
-- AlterTable
ALTER TABLE "Product" ADD COLUMN "printAreaHeightMm" INTEGER NOT NULL DEFAULT 280,
ADD COLUMN "printAreaWidthMm" INTEGER NOT NULL DEFAULT 200;