4 Commits
Author SHA1 Message Date
anthonyandClaude Sonnet 5 1ff660a3d2 feat: add iconSize column to ConversionJob
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-31 10:12:32 +02:00
anthony 439453be38 Baseline Prisma Migrate against the existing conversion_jobs table
Marks 0_init as applied via prisma migrate resolve so Prisma's
migration history is in sync with the pre-existing conversion_jobs
table, without running any SQL against the table itself.
2026-07-31 01:22:43 +02:00
anthonyandClaude Sonnet 5 1ebff25603 Fix Task 1 schema.prisma for exact DDL fidelity and drop --force
Review of Task 1 (d86245a) found two issues:

1. prisma/schema.prisma didn't reproduce db/schema.sql's DDL exactly.
   Add @db.DateTime(0) to createdAt/updatedAt/expiresAt/cleanedAt (Prisma
   otherwise defaults to DATETIME(3)), and explicit map: names on the
   uuid unique constraint and status/expiresAt indexes so they match the
   real table's uniq_uuid/idx_status/idx_expires_at. Verified via
   `prisma migrate diff --from-empty --to-schema-datamodel`, which now
   shows DATETIME(0)/CURRENT_TIMESTAMP(0) and the correct names. Table
   collation and updated_at's ON UPDATE CURRENT_TIMESTAMP remain
   documented, accepted gaps with no schema-level fix in Prisma's mysql
   provider.

2. The original @prisma/client@6/prisma@6 pin used --force without
   diagnosing why. Reinstalled with `npm install @prisma/client@6
   prisma@6 --save-dev` (no --force) directly against this project's
   node_modules: it completed cleanly with no conflicts, confirming
   --force was unnecessary.

`prisma validate`, `prisma generate`, and the full test suite
(69 passed, 4 pre-existing failures unrelated to this change) all pass.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-31 01:07:34 +02:00
anthony d86245a2b1 Add Prisma schema and client generation 2026-07-31 00:50:23 +02:00