id(); $table->string('name'); $table->text('description')->nullable(); $table->date('date'); $table->foreignId('teacher_id')->constrained('teachers')->onDelete('cascade'); $table->foreignId('group_id')->nullable()->constrained('groups')->onDelete('cascade'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('activities'); } };