Add all files
This commit is contained in:
36
extensions/Servers/Proxmox/Models/IPAddress.php
Normal file
36
extensions/Servers/Proxmox/Models/IPAddress.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Paymenter\Extensions\Servers\Proxmox\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class IPAddress extends Model
|
||||
{
|
||||
protected $table = 'ext_proxmox_ip_addresses';
|
||||
|
||||
protected $fillable = [
|
||||
'ip',
|
||||
'gateway',
|
||||
'bridge',
|
||||
'netmask',
|
||||
'mac_address',
|
||||
'server_id',
|
||||
'type',
|
||||
'ip_pool_id',
|
||||
'subdomain',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'subdomain' => 'array',
|
||||
];
|
||||
|
||||
public function server()
|
||||
{
|
||||
return $this->belongsTo(Server::class);
|
||||
}
|
||||
|
||||
public function ipPool()
|
||||
{
|
||||
return $this->belongsTo(IPPool::class, 'ip_pool_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user