update sync vm

This commit is contained in:
pbao9
2026-02-05 21:57:57 +07:00
parent 3a01d07a74
commit eef04846a8
11 changed files with 436 additions and 76 deletions
+25
View File
@@ -8,4 +8,29 @@ use Illuminate\Database\Eloquent\Model;
class VirtualMachines extends Model
{
use HasFactory;
protected $fillable = [
'uuid',
'vm_id',
'name',
'power_state',
'folder',
'is_template',
'cpu',
'ram_mb',
'is_system',
'last_synced_at',
'datacenter_id',
'host_id'
];
public function datacenter()
{
return $this->belongsTo(ModuleDatacenter::class, 'datacenter_id');
}
public function host()
{
return $this->belongsTo(ModuleHost::class, 'host_id');
}
}