add manager aprove

This commit is contained in:
Meghdad committed 2026-07-22 17:28:42 +03:30
1 parent e8223fbc3e
commit 728d5d5807
8 files changed
+209

No files matched your search

@@ -0,0 +1,38 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('loans', function (Blueprint $table) {
$table->foreignId('manager_approved_by')
->nullable()
->constrained('users')
->nullOnDelete();
$table->timestamp('manager_approved_at')->nullable()->index();
$table->text('manager_approval_note')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('loans', function (Blueprint $table) {
$table->dropForeign(['manager_approved_by']);
$table->dropColumn([
'manager_approved_by',
'manager_approved_at',
'manager_approval_note',
]);
});
}
};