From 3406b12260202e5bc5dada7275d66fad13a345dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Fri, 6 Feb 2026 09:58:07 +0900 Subject: [PATCH] =?UTF-8?q?feat:=EB=B0=94=EB=A1=9C=EB=B9=8C=20=EA=B3=84?= =?UTF-8?q?=EC=A2=8C=20=EA=B1=B0=EB=9E=98=EB=82=B4=EC=97=AD=20=EC=98=A4?= =?UTF-8?q?=EB=B2=84=EB=9D=BC=EC=9D=B4=EB=93=9C=20=ED=85=8C=EC=9D=B4?= =?UTF-8?q?=EB=B8=94=20=EB=A7=88=EC=9D=B4=EA=B7=B8=EB=A0=88=EC=9D=B4?= =?UTF-8?q?=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 - barobill_bank_transaction_overrides 테이블 생성 - tenant_id + unique_key 복합 유니크 인덱스 - modified_summary, modified_cast 필드로 수정값 저장 Co-Authored-By: Claude Opus 4.5 --- ...obill_bank_transaction_overrides_table.php | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 database/migrations/2026_02_06_095159_create_barobill_bank_transaction_overrides_table.php diff --git a/database/migrations/2026_02_06_095159_create_barobill_bank_transaction_overrides_table.php b/database/migrations/2026_02_06_095159_create_barobill_bank_transaction_overrides_table.php new file mode 100644 index 0000000..ec43c8e --- /dev/null +++ b/database/migrations/2026_02_06_095159_create_barobill_bank_transaction_overrides_table.php @@ -0,0 +1,37 @@ +id(); + $table->unsignedBigInteger('tenant_id')->comment('테넌트 ID'); + $table->string('unique_key', 100)->comment('거래 고유키 (계좌번호|거래일시|입금|출금|잔액)'); + $table->string('modified_summary', 200)->nullable()->comment('수정된 적요'); + $table->string('modified_cast', 200)->nullable()->comment('수정된 내용'); + $table->timestamps(); + + // 복합 유니크 인덱스 (테넌트별 거래 고유키) + $table->unique(['tenant_id', 'unique_key'], 'bb_trans_override_unique'); + + // 조회용 인덱스 + $table->index('tenant_id', 'bb_trans_override_tenant_idx'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('barobill_bank_transaction_overrides'); + } +};