Update source into github
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ModuleHost extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'module_host';
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'host_id',
|
||||
'template',
|
||||
'module_datacenter_id',
|
||||
'console',
|
||||
'iso_path'
|
||||
];
|
||||
|
||||
public function datacenter()
|
||||
{
|
||||
return $this->belongsTo(\App\Models\ModuleDatacenter::class, 'module_datacenter_id', 'id');
|
||||
}
|
||||
public function datastore()
|
||||
{
|
||||
return $this->hasMany(\App\Models\ModuleDatastore::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user