id(); $table->string('topic'); $table->text('description')->nullable(); /* $table->foreignId('teacher_id')->constrained('teachers')->onDelete('cascade'); */ /* $table->foreignId('group_id')->constrained('groups')->onDelete('cascade'); */ $table->dateTime('scheduled_at')->nullable(); $table->integer('duration_minutes')->default(60); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('lessons'); } };