-- CreateEnum
CREATE TYPE "QuestionCategory" AS ENUM ('PRACTICE', 'EXAM');

-- AlterTable
ALTER TABLE "Question" ADD COLUMN     "category" "QuestionCategory" NOT NULL DEFAULT 'PRACTICE';

-- CreateIndex
CREATE INDEX "Question_courseId_category_status_idx" ON "Question"("courseId", "category", "status");
