Prechádzať zdrojové kódy

添加 weight 字段

visuddhinanda 1 rok pred
rodič
commit
9fa47a126e

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

@@ -33,11 +33,12 @@ 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->string('category', 256)->nullable()->index(); //分类 审稿,百科 等
+            $table->string('category', 256)->nullable()->index()->comment('类别,分类 审稿,百科 等');
             $table->text('summary')->nullable();
             $table->text('description')->nullable();
+            $table->integer('weight')->index()->default(0)->comment('权重');
             $table->uuid('parent_id')->index()->nullable();
-            $table->jsonb('assignees_id')->index()->nullable();
+            $table->jsonb('assignees_id')->index()->nullable()->comment('责任人');
             $table->jsonb('roles')->index()->nullable();
             $table->uuid('executor_id')->index()->nullable();
             $table->uuid('executor_relation_task_id')->index()->nullable();

+ 1 - 0
api-v8/database/migrations/2024_10_25_015946_create_projects_table.php

@@ -19,6 +19,7 @@ class CreateProjectsTable extends Migration
             $table->string('title', 512)->index();
             $table->string('type', 32)->index()->default('normal');
             $table->text('description')->nullable();
+            $table->integer('weight')->index()->default(0)->comment('权重');
             $table->jsonb('executors_id')->index()->nullable();
             $table->uuid('parent_id')->index()->nullable();
             $table->jsonb('path')->index()->nullable();