From f163373fb074f902800a0602d4e6c44c5c187071 Mon Sep 17 00:00:00 2001 From: pro Date: Wed, 28 Jan 2026 16:49:31 +0900 Subject: [PATCH] =?UTF-8?q?feat:credit=5Finquiries=20=ED=85=8C=EC=9D=B4?= =?UTF-8?q?=EB=B8=94=EC=97=90=20tenant=5Fid=20=EC=BB=AC=EB=9F=BC=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 - 신용평가 조회회수 집계 기능을 위한 테넌트 구분 컬럼 - tenant_id, (tenant_id, inquired_at) 인덱스 추가 Co-Authored-By: Claude Opus 4.5 --- ...dd_tenant_id_to_credit_inquiries_table.php | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 database/migrations/2026_01_28_163000_add_tenant_id_to_credit_inquiries_table.php diff --git a/database/migrations/2026_01_28_163000_add_tenant_id_to_credit_inquiries_table.php b/database/migrations/2026_01_28_163000_add_tenant_id_to_credit_inquiries_table.php new file mode 100644 index 0000000..52ec02f --- /dev/null +++ b/database/migrations/2026_01_28_163000_add_tenant_id_to_credit_inquiries_table.php @@ -0,0 +1,26 @@ +unsignedBigInteger('tenant_id')->nullable()->after('id'); + $table->index('tenant_id'); + $table->index(['tenant_id', 'inquired_at']); + }); + } + + public function down(): void + { + Schema::table('credit_inquiries', function (Blueprint $table) { + $table->dropIndex(['tenant_id', 'inquired_at']); + $table->dropIndex(['tenant_id']); + $table->dropColumn('tenant_id'); + }); + } +};