2022-03-05 16:02:12 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
class NetworkSpeed 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 = 'network_speed';
|
|
|
|
|
|
|
|
protected $fillable = ['id', 'server_id', 'location', 'send', 'send_type', 'send_as_mbps', 'receive', 'receive_type', 'receive_as_mbps', 'created_at', 'updated_at'];
|
2022-07-18 06:43:22 +02:00
|
|
|
|
2023-08-19 15:46:18 +02:00
|
|
|
public function yabs(): \Illuminate\Database\Eloquent\Relations\BelongsTo
|
2022-07-18 06:43:22 +02:00
|
|
|
{
|
|
|
|
return $this->belongsTo(Yabs::class, 'id', 'id');
|
|
|
|
}
|
2022-03-05 16:02:12 +01:00
|
|
|
}
|