update sync vm
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user