-- CreateTable
CREATE TABLE "AgentSettings" (
    "id" TEXT NOT NULL PRIMARY KEY DEFAULT 'default',
    "systemPrompt" TEXT NOT NULL DEFAULT 'You are an expert solar savings analyst. Analyze the following lead and provide a persuasive, personalized summary of potential savings.',
    "temperature" REAL NOT NULL DEFAULT 0.7,
    "maxTokens" INTEGER NOT NULL DEFAULT 150,
    "model" TEXT NOT NULL DEFAULT 'grok-4-1-fast-reasoning',
    "updatedAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
);

-- Insert default settings
INSERT INTO "AgentSettings" ("id", "systemPrompt", "temperature", "maxTokens", "model") 
VALUES ('default', 'You are an expert solar savings analyst. Analyze the following lead and provide a persuasive, personalized summary of potential savings.', 0.7, 150, 'grok-4-1-fast-reasoning');
