id(); // $table->string('title'); $table->boolean('is_zaoch'); $table->text('file'); // $table->text('days'); // $table->string('type'); $table->unsignedBigInteger('educational_group_id'); $table->foreign('educational_group_id')->references('id')->on('educational_groups')->onDelete('cascade'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::table('schedules', function (Blueprint $table) { $table->dropForeign(['faculty_id']); }); Schema::dropIfExists('schedules'); } };