You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?php
use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema;
class CreateTasksTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('tasks', function (Blueprint $table) { $table->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'); } }
|