-- CreateEnum
CREATE TYPE "TranslationExecutionMode" AS ENUM ('live', 'mock');

-- CreateEnum
CREATE TYPE "MockTranslationScenario" AS ENUM ('success', 'pending_hold', 'processing_hold', 'rate_limited', 'transient_failure', 'permanent_failure', 'timeout', 'malformed_response');

ALTER TABLE "licenses"
ADD COLUMN "execution_mode" "TranslationExecutionMode" NOT NULL DEFAULT 'live';

ALTER TABLE "translation_jobs"
ADD COLUMN "execution_mode" "TranslationExecutionMode" NOT NULL DEFAULT 'live',
ADD COLUMN "mock_scenario" "MockTranslationScenario";

CREATE INDEX "licenses_execution_mode_status_idx"
ON "licenses"("execution_mode", "status");

CREATE INDEX "translation_jobs_execution_mode_status_created_at_idx"
ON "translation_jobs"("execution_mode", "status", "created_at");
