This commit is contained in:
baodev0
2026-06-22 08:43:32 +07:00
parent 3243473843
commit 0c436153c6
22 changed files with 1389 additions and 95 deletions
+7 -1
View File
@@ -14,11 +14,17 @@ class ModuleDatacenter extends Model
protected $fillable = [
'name',
'datacenter_id',
'vcenter_id'
'vcenter_id',
'status',
];
public function vCenter()
{
return $this->belongsTo(\App\Models\vCenter::class,'vcenter_id','id');
}
public function hosts()
{
return $this->hasMany(\App\Models\ModuleHost::class, 'module_datacenter_id', 'id');
}
}