Files
services_core/app/Models/NasPackageProfileTarget.php
T
2026-08-07 09:16:13 +07:00

11 lines
543 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class NasPackageProfileTarget extends Model
{
protected $guarded = ['id'];
protected function casts(): array { return ['desired_snapshot' => 'array', 'remote_snapshot' => 'array', 'last_checked_at' => 'datetime', 'last_synced_at' => 'datetime']; }
public function packageProfile() { return $this->belongsTo(NasPackageProfile::class, 'nas_package_profile_id'); }
public function mikrotik() { return $this->belongsTo(NasMikrotik::class, 'nas_mikrotik_id'); }
}