-- CreateEnum
CREATE TYPE "HlsStatus" AS ENUM ('PENDING', 'PROCESSING', 'READY', 'FAILED', 'SKIPPED');

-- AlterTable
ALTER TABLE "videos" ADD COLUMN     "hls_job_id" TEXT,
ADD COLUMN     "hls_manifest_path" TEXT,
ADD COLUMN     "hls_status" "HlsStatus",
ADD COLUMN     "hls_transcode_error" TEXT,
ADD COLUMN     "hls_transcoded_at" TIMESTAMP(3),
ADD COLUMN     "hls_variants" JSONB;

-- CreateIndex
CREATE INDEX "idx_videos_hls_status" ON "videos"("hls_status");
