wip on loanorders
This commit is contained in:
1 parent
11ad96e5d8
commit
307f197d27
9 files changed
+300
-28
No files matched your search
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use App\Repos\Order\OrderRepo;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
@@ -56,11 +57,11 @@ public function up(): void
|
||||
$table->text('passport_three');
|
||||
$table->text('passport_four');
|
||||
|
||||
$table->foreignId('filled_by')->constrained('users')->restrictOnDelete();
|
||||
$table->foreignId('user_id')->constrained('users')->restrictOnDelete();
|
||||
$table->foreignId('filled_by')->nullable()->constrained('users')->restrictOnDelete();
|
||||
$table->foreignId('user_id')->nullable()->constrained('users')->restrictOnDelete();
|
||||
|
||||
$table->string('status')->index();
|
||||
$table->string('status_reason')->nullable();
|
||||
$table->string('status')->nullable()->default(OrderRepo::defaultStatus())->index();
|
||||
$table->string('status_reason')->nullable()->default('');
|
||||
|
||||
$table->string('notes')->nullable();
|
||||
|
||||
|
||||
Reference in new issue
Block a user