CREATE TABLE IF NOT EXISTS ai_model_parameter_profile (
    id BIGSERIAL PRIMARY KEY,
    model_version_id UUID NOT NULL,
    temperature_min DOUBLE PRECISION NOT NULL,
    temperature_max DOUBLE PRECISION NOT NULL,
    top_p_min DOUBLE PRECISION NOT NULL,
    top_p_max DOUBLE PRECISION NOT NULL,
    frequency_penalty_supported BOOLEAN NOT NULL DEFAULT false,
    presence_penalty_supported BOOLEAN NOT NULL DEFAULT false,
    UNIQUE (model_version_id)
);

CREATE UNIQUE INDEX idx_ai_model_parameter_profile_model_version_id ON ai_model_parameter_profile (model_version_id);
