diff --git a/prisma/migrations/20260718092854_add_product_dimensions/migration.sql b/prisma/migrations/20260718092854_add_product_dimensions/migration.sql new file mode 100644 index 0000000..0afa805 --- /dev/null +++ b/prisma/migrations/20260718092854_add_product_dimensions/migration.sql @@ -0,0 +1,3 @@ +-- AlterTable +ALTER TABLE "Product" ADD COLUMN "printAreaHeightMm" INTEGER NOT NULL DEFAULT 280, +ADD COLUMN "printAreaWidthMm" INTEGER NOT NULL DEFAULT 200; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 94ecab1..c6bbb32 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -37,6 +37,8 @@ model Product { mockup String // which SVG mockup component to render, e.g. "tshirt" | "hoodie" | "mug" | "phonecase" printArea String // JSON: {"xPct":..,"yPct":..,"wPct":..,"hPct":..} printAreaBack String? // same shape, for the back print area — only used when imageUrlBack is set + printAreaWidthMm Int @default(200) // width of the printable area in millimeters + printAreaHeightMm Int @default(280) // height of the printable area in millimeters imageUrl String? // optional real product photo — shown instead of the illustration when set imageUrlBack String? // optional back-view photo, toggled alongside the front photo photoRecolorable Boolean @default(false) // if true, the photo is treated as a grayscale diff --git a/src/app/admin/orders/[id]/page.tsx b/src/app/admin/orders/[id]/page.tsx index 201b5f3..c2100d6 100644 --- a/src/app/admin/orders/[id]/page.tsx +++ b/src/app/admin/orders/[id]/page.tsx @@ -23,6 +23,12 @@ export default async function OrderDetailPage({ params }: { params: { id: string

Order

{order.archived && Archived} + + ↓ Download specs +