-- Create table for storing custom AI prompts CREATE TABLE IF NOT EXISTS ai_prompts ( key VARCHAR(100) PRIMARY KEY, prompt_text TEXT NOT NULL, updated_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP, updated_by INTEGER REFERENCES users(user_id) ); -- Note: We only store overrides here. If a key is missing, we use the hardcoded default.