1
0
Fork 0

添加负责人字段

develop
vine_liutk 2023-03-21 18:07:03 +08:00
parent 001e78a111
commit 96fbe56898
3 changed files with 3 additions and 0 deletions

View File

@ -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('分类');

View File

@ -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已结束');

View File

@ -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('收获时间');