Browse Source

add creator_id,summary

visuddhinanda 1 năm trước cách đây
mục cha
commit
9c203b1ac1

+ 3 - 1
api-v8/database/migrations/2024_10_24_124140_create_tasks_table.php

@@ -33,6 +33,7 @@ class CreateTasksTable extends Migration
             $table->uuid('id')->primary()->default(DB::raw('uuid_generate_v1mc()'));
             $table->string('title', 512)->index();
             $table->string('type', 32)->index()->default('project');
+            $table->text('summary')->nullable();
             $table->text('description')->nullable();
             $table->uuid('parent_id')->index()->nullable();
             $table->jsonb('assignees_id')->index()->nullable();
@@ -44,6 +45,7 @@ class CreateTasksTable extends Migration
             $table->uuid('next_task_id')->index()->nullable();
             $table->boolean('is_milestone')->index()->default(false);
             $table->uuid('owner_id')->index();
+            $table->uuid('creator_id')->index();
             $table->uuid('editor_id')->index();
             $table->integer('order')->index()->default(1);
             $table->string('status', 32)->index()->default('pending');
@@ -53,7 +55,7 @@ class CreateTasksTable extends Migration
             $table->timestamp('begin_at')->nullable()->index();
             $table->timestamp('end_at')->nullable()->index();
             $table->boolean('plan_with_time')->index()->default(false);
-            $table->boolean('hide_description')->index()->default(false); //在开始时间之前隐藏描述
+            $table->boolean('hide_description_before_begin')->index()->default(false); //在开始时间之前隐藏描述
             $table->text('script')->nullable();
             $table->timestamps();
         });