my-idlers/app/Models/DiskSpeed.php
cp6 20058cb9c9 Issue 56 & 57 fix?
Issue 56 & 57 fix?
2022-07-22 23:49:18 +10:00

25 lines
592 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class DiskSpeed extends Model
{
use HasFactory;
public $incrementing = false;
protected $keyType = 'string';
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'];
public function yabs()
{
return $this->belongsTo(Yabs::class, 'id', 'id');
}
}