From 4839cfcad22b8604ed355d76ff3d1cae156dc46b Mon Sep 17 00:00:00 2001 From: pro Date: Tue, 27 Jan 2026 23:00:43 +0900 Subject: [PATCH] =?UTF-8?q?feat:ai=5Fconfigs=20=ED=85=8C=EC=9D=B4=EB=B8=94?= =?UTF-8?q?=20=EB=A7=88=EC=9D=B4=EA=B7=B8=EB=A0=88=EC=9D=B4=EC=85=98=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - AI API 설정 테이블 (Gemini, Claude, OpenAI 지원) - provider별 활성화 상태 관리 - 명함 OCR 시스템을 위한 기반 구조 --- ...6_01_27_100000_create_ai_configs_table.php | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 database/migrations/2026_01_27_100000_create_ai_configs_table.php diff --git a/database/migrations/2026_01_27_100000_create_ai_configs_table.php b/database/migrations/2026_01_27_100000_create_ai_configs_table.php new file mode 100644 index 0000000..e4ddce6 --- /dev/null +++ b/database/migrations/2026_01_27_100000_create_ai_configs_table.php @@ -0,0 +1,39 @@ +id(); + $table->string('name', 50)->comment('설정 이름 (Gemini, Claude 등)'); + $table->string('provider', 30)->comment('제공자 (gemini, claude, openai)'); + $table->string('api_key', 255)->comment('API 키'); + $table->string('model', 100)->comment('모델명 (gemini-2.0-flash 등)'); + $table->string('base_url', 255)->nullable()->comment('API Base URL'); + $table->text('description')->nullable()->comment('설명'); + $table->boolean('is_active')->default(false)->comment('활성화 여부 (provider당 1개만 활성화)'); + $table->json('options')->nullable()->comment('추가 옵션 (JSON)'); + $table->timestamps(); + $table->softDeletes(); + + $table->index('provider'); + $table->index(['provider', 'is_active']); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('ai_configs'); + } +};