id(); $table->integer('amount')->default(0); $table->foreignId('treatment_id')->constrained('treatments')->onDelete('cascade'); $table->foreignId('patien_registration_id')->constrained('patien_registrations')->onDelete('cascade'); $table->foreignId('user_id')->constrained('users')->onDelete('cascade'); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('transactions'); } };