feat: Netzwerk-Modul v0.5.0 – Import, Geräte-Tracking, Ereignislog

This commit is contained in:
2026-06-29 15:18:49 +02:00
parent eb57be730b
commit 402537805d
21 changed files with 1269 additions and 7 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class NetworkHost extends Model
{
protected $fillable = [
'scan_id', 'device_id', 'ip_address', 'mac_address',
'hostname', 'mac_vendor', 'status', 'ping_ms',
'netbios_info', 'ttl', 'ports', 'http_sender', 'web_detection',
];
public function scan(): BelongsTo
{
return $this->belongsTo(NetworkScan::class, 'scan_id');
}
public function device(): BelongsTo
{
return $this->belongsTo(NetworkDevice::class, 'device_id');
}
}