-- Migration: Add slide_setting_id to project_ai_prompt_settings table
-- Date: 2025-01-XX
-- Description: Adds slide_setting_id column to store selected slide setting for AI document generation

ALTER TABLE project_ai_prompt_settings
ADD COLUMN slide_setting_id VARCHAR(36) DEFAULT NULL COMMENT '選択されたスライド設定ID' AFTER presentation_style,
ADD INDEX idx_slide_setting (slide_setting_id),
ADD FOREIGN KEY (slide_setting_id) REFERENCES slide_settings(id) ON DELETE SET NULL;

