2022-03-05 16:02:12 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
class DiskSpeed extends Model
|
|
|
|
{
|
|
|
|
use HasFactory;
|
|
|
|
|
2022-07-18 06:43:22 +02:00
|
|
|
public $incrementing = false;
|
|
|
|
|
2022-07-22 15:49:18 +02:00
|
|
|
protected $keyType = 'string';
|
|
|
|
|
2022-03-05 16:02:12 +01:00
|
|
|
protected $table = 'disk_speed';
|
|
|
|
|
|
|
|
protected $fillable = ['id', 'server_id', 'd_4k', 'd_4k_type', 'd_4k_as_mbps', 'd_64k', 'd_64k_type', 'd_64k_as_mbps', 'd_512k', 'd_512k_type', 'd_512k_as_mbps', 'd_1m', 'd_1m_type', 'd_1m_as_mbps'];
|
2022-07-18 06:43:22 +02:00
|
|
|
|
|
|
|
public function yabs()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Yabs::class, 'id', 'id');
|
|
|
|
}
|
2022-03-05 16:02:12 +01:00
|
|
|
}
|