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
+30
View File
@@ -0,0 +1,30 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
class NetworkScan extends Model
{
protected $fillable = [
'subnet', 'source', 'scanner', 'total_hosts',
'online_hosts', 'new_devices', 'changed_devices',
'notes', 'created_by',
];
protected $casts = [
'created_at' => 'datetime',
];
public function hosts(): HasMany
{
return $this->hasMany(NetworkHost::class, 'scan_id');
}
public function creator(): BelongsTo
{
return $this->belongsTo(User::class, 'created_by');
}
}