id(); $table->date('due_date')->nullable(); $table->decimal('amount', 8, 4)->nullable(); $table->text('note')->nullable()->default(''); $table->foreignIdFor(\App\Models\Action::class); $table->foreignIdFor(\App\Models\Decision::class); $table->foreignIdFor(\App\Models\ClientCase::class); $table->foreignIdFor(\App\Models\Contract::class)->nullable(); $table->softDeletes(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('activities'); } };