feat: Netzwerk-Modul v0.5.0 – Import, Geräte-Tracking, Ereignislog
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user