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