feat(#36): add Mail notification on Low Battery

This commit is contained in:
Benjamin Nussbaum 2025-06-18 00:10:29 +02:00
parent 1122764333
commit 33e1f99fad
11 changed files with 375 additions and 0 deletions

View file

@ -15,6 +15,7 @@ class Device extends Model
protected $guarded = ['id'];
protected $casts = [
'battery_notification_sent' => 'boolean',
'proxy_cloud' => 'boolean',
'last_log_request' => 'json',
'proxy_cloud_response' => 'json',
@ -179,4 +180,9 @@ class Device extends Model
{
return $this->hasMany(DeviceLog::class);
}
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
}