35 lines
693 B
PHP
35 lines
693 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class MeteorologicalMonitoringDailyLog extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $casts = [
|
|
'wind_direction' => WindDirection::class,
|
|
'monitored_at' => 'date',
|
|
];
|
|
|
|
protected $fillable = [
|
|
'device_id',
|
|
'agricultural_base_id',
|
|
'wind_speed',
|
|
'wind_direction',
|
|
'wind_degree',
|
|
'air_humidity',
|
|
'air_temperature',
|
|
'air_pressure',
|
|
'co2',
|
|
'noise',
|
|
'illumination',
|
|
'daily_rainfall',
|
|
'pm25',
|
|
'pm10',
|
|
'monitored_at',
|
|
];
|
|
}
|