-- Replace TranslationModel enum column with a plain string column with default.
-- Only one model exists and there is no model selection in the app.

-- 1. Add a temporary text column with the default
ALTER TABLE "translation_jobs" ADD COLUMN "model_new" TEXT NOT NULL DEFAULT 'gemini-3-flash-preview';

-- 2. Copy existing enum values into the new column
UPDATE "translation_jobs" SET "model_new" = "model"::text;

-- 3. Drop the old enum column
ALTER TABLE "translation_jobs" DROP COLUMN "model";

-- 4. Rename new column to "model"
ALTER TABLE "translation_jobs" RENAME COLUMN "model_new" TO "model";

-- 5. Drop the enum type
DROP TYPE "TranslationModel";
