id(); $table->unsignedInteger('nami_id'); $table->string('name'); }); Schema::create('course_member', function($table) { $table->foreignId('member_id')->constrained(); $table->foreignId('course_id')->constrained(); $table->string('organizer'); $table->string('event_name'); $table->unsignedInteger('nami_id'); $table->date('completed_at'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('courses'); } }