id(); $table->string('name'); $table->string('description'); $table->string('location'); $table->dateTime("start"); $table->dateTime("end"); $table->integer('max_participants'); $table->foreignId("event_id")->constrained("events")->onDelete("cascade"); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('tasks'); } };