diff --git a/database/migrations/2023_03_21_104958_create_regions_table.php b/database/migrations/2023_03_21_104958_create_regions_table.php index 621c197..e3fefa0 100644 --- a/database/migrations/2023_03_21_104958_create_regions_table.php +++ b/database/migrations/2023_03_21_104958_create_regions_table.php @@ -17,6 +17,7 @@ return new class extends Migration $table->id(); $table->string('name'); $table->string('cover')->nullable()->comment('封面图'); + $table->string('director')->nullable()->comment('负责人'); $table->decimal('area')->default(0.00)->comment('面积'); $table->text('description')->nullable()->comment('描述'); $table->unsignedBigInteger('category_id')->nullable()->comment('分类'); diff --git a/database/migrations/2023_03_21_105801_create_region_plant_logs_table.php b/database/migrations/2023_03_21_105801_create_region_plant_logs_table.php index cd2b316..5c172cd 100644 --- a/database/migrations/2023_03_21_105801_create_region_plant_logs_table.php +++ b/database/migrations/2023_03_21_105801_create_region_plant_logs_table.php @@ -17,6 +17,7 @@ return new class extends Migration $table->id(); $table->unsignedBigInteger('region_id'); $table->string('plant_name')->comment('种植名称'); + $table->string('director')->nullable()->comment('负责人'); $table->text('description')->nullable()->comment('描述'); $table->timestamp('start_at')->nullable()->comment('种植开始时间'); $table->unsignedTinyInteger('status')->default(0)->comment('0未开始,1种植中,2已结束'); diff --git a/database/migrations/2023_03_21_111915_create_plant_harvest_logs_table.php b/database/migrations/2023_03_21_111915_create_plant_harvest_logs_table.php index ecbd8de..74170f4 100644 --- a/database/migrations/2023_03_21_111915_create_plant_harvest_logs_table.php +++ b/database/migrations/2023_03_21_111915_create_plant_harvest_logs_table.php @@ -16,6 +16,7 @@ return new class extends Migration Schema::create('plant_harvest_logs', function (Blueprint $table) { $table->id(); $table->unsignedBigInteger('plant_id'); + $table->string('director')->nullable()->comment('负责人'); $table->decimal('area')->default(0.00)->comment('面积/平米'); $table->decimal('output')->default(0.00)->comment('产量/千克'); $table->timestamp('harvest_at')->nullable()->comment('收获时间');