添加负责人字段
parent
001e78a111
commit
96fbe56898
|
|
@ -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('分类');
|
||||
|
|
|
|||
|
|
@ -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已结束');
|
||||
|
|
|
|||
|
|
@ -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('收获时间');
|
||||
|
|
|
|||
Loading…
Reference in New Issue