Jing Li 2022-11-24 13:07:38 +08:00
parent 0b4f1394af
commit 8247f78cf4
2 changed files with 6 additions and 5 deletions

View File

@ -10,14 +10,9 @@ class MeteorologicalMonitoringLog extends Model
{
use HasFactory;
protected $attributes = [
'is_filled' => false,
];
protected $casts = [
'wind_direction' => WindDirection::class,
'monitored_at' => 'datetime',
'is_filled' => 'bool',
];
protected $fillable = [

View File

@ -9,8 +9,13 @@ class WaterQualityMonitoringLog extends Model
{
use HasFactory;
protected $attributes = [
'is_filled' => false,
];
protected $casts = [
'monitored_at' => 'datetime',
'is_filled' => 'bool',
];
protected $fillable = [
@ -23,5 +28,6 @@ class WaterQualityMonitoringLog extends Model
'temperature',
'turbidity',
'monitored_at',
'is_filled',
];
}