From ad56e94988dd50cf01698fe5bddb3b6775b8f116 Mon Sep 17 00:00:00 2001 From: kent Date: Tue, 16 Dec 2025 01:56:20 +0900 Subject: [PATCH] =?UTF-8?q?feat(api):=20=EC=82=AC=EC=97=85=EC=9E=90?= =?UTF-8?q?=EB=93=B1=EB=A1=9D=EC=A6=9D=20OCR=EC=9A=A9=20biz=5Fcert=20?= =?UTF-8?q?=ED=85=8C=EC=9D=B4=EB=B8=94=20=EB=A7=88=EC=9D=B4=EA=B7=B8?= =?UTF-8?q?=EB=A0=88=EC=9D=B4=EC=85=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - biz_cert 테이블 생성 (사업자등록번호, 상호, 대표자, 개업일, 주소, 업태, 종목, 발급일) - raw_text, ocr_method 필드 추가 (OCR 원본 텍스트 및 처리 방식 저장) - biz_no, company_name 인덱스 추가 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- ...025_12_16_012109_create_biz_cert_table.php | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 database/migrations/2025_12_16_012109_create_biz_cert_table.php diff --git a/database/migrations/2025_12_16_012109_create_biz_cert_table.php b/database/migrations/2025_12_16_012109_create_biz_cert_table.php new file mode 100644 index 0000000..f577f1d --- /dev/null +++ b/database/migrations/2025_12_16_012109_create_biz_cert_table.php @@ -0,0 +1,40 @@ +id(); + $table->string('biz_no', 12)->comment('사업자등록번호'); + $table->string('company_name', 100)->comment('상호'); + $table->string('representative', 50)->nullable()->comment('대표자'); + $table->date('open_date')->nullable()->comment('개업일'); + $table->string('address', 255)->nullable()->comment('주소'); + $table->string('biz_type', 100)->nullable()->comment('업태'); + $table->string('biz_item', 255)->nullable()->comment('종목'); + $table->date('issue_date')->nullable()->comment('발급일'); + $table->text('raw_text')->nullable()->comment('OCR 원본 텍스트'); + $table->string('ocr_method', 20)->default('claude')->comment('OCR 방식 (tesseract/claude)'); + $table->timestamps(); + + $table->index('biz_no'); + $table->index('company_name'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('biz_cert'); + } +};