id(); $table->unsignedBigInteger('milestone_id')->nullable(); $table->unsignedBigInteger('type_id'); $table->string('title'); $table->text('description')->nullable(); $table->unsignedBigInteger('status'); $table->boolean('active'); $table->timestamps(); $table->softDeletes(); $table->foreign('milestone_id')->references('id')->on('project_milestones'); $table->foreign('type_id')->references('id')->on('modular_types'); $table->foreign('status')->references('id')->on('modular_types'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('tasks'); } }