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'); + }); + } +};