id(); $table->foreignId('user_id')->constrained()->cascadeOnDelete(); $table->string('name', 100); $table->unsignedInteger('amount'); $table->timestamp('created_at')->useCurrent(); $table->timestamp('updated_at')->nullable()->useCurrentOnUpdate(); $table->softDeletes(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('expenses'); } };