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; use HasFactory;
protected $attributes = [
'is_filled' => false,
];
protected $casts = [ protected $casts = [
'wind_direction' => WindDirection::class, 'wind_direction' => WindDirection::class,
'monitored_at' => 'datetime', 'monitored_at' => 'datetime',
'is_filled' => 'bool',
]; ];
protected $fillable = [ protected $fillable = [

View File

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