From cf9f8ce7f9167a4139f5fe0b0a9c0063355136a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Mon, 23 Mar 2026 12:40:15 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20[=EA=B1=B0=EB=9E=98=EC=B2=98]=20trading?= =?UTF-8?q?=5Fpartners=EC=97=90=20registration=5Ftype=20=EC=BB=AC=EB=9F=BC?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...tration_type_to_trading_partners_table.php | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 database/migrations/2026_03_23_130000_add_registration_type_to_trading_partners_table.php diff --git a/database/migrations/2026_03_23_130000_add_registration_type_to_trading_partners_table.php b/database/migrations/2026_03_23_130000_add_registration_type_to_trading_partners_table.php new file mode 100644 index 00000000..47457117 --- /dev/null +++ b/database/migrations/2026_03_23_130000_add_registration_type_to_trading_partners_table.php @@ -0,0 +1,25 @@ +string('registration_type', 20)->default('general')->after('trade_type') + ->comment('등록구분: general(일반거래처), financial(금융거래처), card(법인카드)'); + $table->index(['tenant_id', 'registration_type']); + }); + } + + public function down(): void + { + Schema::table('trading_partners', function (Blueprint $table) { + $table->dropIndex(['tenant_id', 'registration_type']); + $table->dropColumn('registration_type'); + }); + } +};