id(); $table->string('nim'); $table->string('nama'); $table->string('email'); $table->string('nomor_hp'); $table->string('bagian'); $table->string('judul_seminar_proposal'); $table->string('judul_skripsi_id'); $table->string('judul_skripsi_en'); $table->string('judul_jurnal'); $table->string('judul_artikel'); $table->unsignedBigInteger('dosen_dpu_id'); $table->unsignedBigInteger('dosen_dpa_id'); $table->unsignedBigInteger('dosen_penguji1_id'); $table->unsignedBigInteger('dosen_penguji2_id'); $table->foreign('dosen_dpu_id')->references('id')->on('users')->onDelete('cascade'); $table->foreign('dosen_dpa_id')->references('id')->on('users')->onDelete('cascade'); $table->foreign('dosen_penguji1_id')->references('id')->on('users')->onDelete('cascade'); $table->foreign('dosen_penguji2_id')->references('id')->on('users')->onDelete('cascade'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('mahasiswas'); } };