mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-23 11:27:30 +08:00
feat: machine mode, ECH subscriptions, batch ops & security hardening
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class ServerMachineLoadHistory extends Model
|
||||
{
|
||||
protected $table = 'v2_server_machine_load_history';
|
||||
|
||||
protected $guarded = ['id'];
|
||||
|
||||
protected $casts = [
|
||||
'cpu' => 'float',
|
||||
'mem_total' => 'integer',
|
||||
'mem_used' => 'integer',
|
||||
'disk_total' => 'integer',
|
||||
'disk_used' => 'integer',
|
||||
'recorded_at' => 'integer',
|
||||
'created_at' => 'timestamp',
|
||||
'updated_at' => 'timestamp',
|
||||
];
|
||||
|
||||
public function machine(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(ServerMachine::class, 'machine_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user