Jing Li 2022-10-20 17:24:31 +08:00
parent 98a7ada0b0
commit 2e4bd17052
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,9 @@ return new class extends Migration
$table->integer('pm10')->nullable()->comment('PM10浓度 (单位: ug/m3)'); $table->integer('pm10')->nullable()->comment('PM10浓度 (单位: ug/m3)');
$table->timestamp('monitored_at')->comment('监控时间(小时)'); $table->timestamp('monitored_at')->comment('监控时间(小时)');
$table->timestamps(); $table->timestamps();
$table->index('agricultural_base_id');
$table->unique(['device_id', 'monitored_at']);
}); });
} }