-- CreateTable
CREATE TABLE "optimization_features" (
    "trace_id" CHAR(36) NOT NULL,
    "original_code" TEXT NOT NULL,
    "optimizations_raw" JSONB,
    "optimizations_post" JSONB,
    "explanations" JSONB,
    "speedup_ratio" JSONB,
    "original_runtime" DOUBLE PRECISION,
    "optimized_runtime" JSONB,
    "is_correct" JSONB,
    "generated_test" TEXT[],
    "test_framework" TEXT,
    "created_at" TIMESTAMPTZ(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
    "aiservice_commit_id" TEXT NOT NULL,
    "metadata" JSONB,

    CONSTRAINT "optimization_features_pkey" PRIMARY KEY ("trace_id")
);
