id(); $table->unsignedBigInteger('business_id'); $table->unsignedBigInteger('project_id'); $table->unsignedBigInteger('creator_id'); $table->unsignedBigInteger('assignee_id')->nullable(); $table->unsignedBigInteger('system_id')->nullable(); $table->unsignedBigInteger('sprint_id')->nullable(); $table->unsignedBigInteger('workflow_id'); $table->unsignedBigInteger('status_id'); $table->unsignedBigInteger('approver_id')->nullable(); $table->string('title'); $table->text('description')->nullable(); $table->integer('priority')->default(1); $table->boolean('on_time')->default(true); $table->boolean('ready_to_test')->default(false); $table->json('watchers')->nullable(); $table->integer('spent_time')->default(0); $table->integer('estimated_time')->default(0); $table->date('due_date')->nullable(); $table->date('completed_at')->nullable(); $table->timestamp('work_start')->nullable(); $table->timestamp('work_finish')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('tasks'); } }