my-idlers/app/Models/DiskSpeed.php

25 lines
643 B
PHP
Raw Normal View History

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class DiskSpeed extends Model
{
use HasFactory;
public $incrementing = false;
2022-07-22 15:49:18 +02:00
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'];
2023-08-19 15:46:18 +02:00
public function yabs(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(Yabs::class, 'id', 'id');
}
}