mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-11 23:19:05 +00:00
41 lines
1.7 KiB
PHP
41 lines
1.7 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Builder;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\HasOne;
|
|
|
|
/**
|
|
* 节点每日流量统计
|
|
*
|
|
* @property int $id
|
|
* @property int $node_id 节点ID
|
|
* @property int $u 上传流量
|
|
* @property int $d 下载流量
|
|
* @property int $total 总流量
|
|
* @property string|null $traffic 总流量(带单位)
|
|
* @property \Illuminate\Support\Carbon|null $created_at 创建时间
|
|
* @property \Illuminate\Support\Carbon|null $updated_at 最后更新时间
|
|
* @property-read \App\Models\SsNode|null $info
|
|
* @method static Builder|SsNodeTrafficHourly newModelQuery()
|
|
* @method static Builder|SsNodeTrafficHourly newQuery()
|
|
* @method static Builder|SsNodeTrafficHourly query()
|
|
* @method static Builder|SsNodeTrafficHourly whereCreatedAt($value)
|
|
* @method static Builder|SsNodeTrafficHourly whereD($value)
|
|
* @method static Builder|SsNodeTrafficHourly whereId($value)
|
|
* @method static Builder|SsNodeTrafficHourly whereNodeId($value)
|
|
* @method static Builder|SsNodeTrafficHourly whereTotal($value)
|
|
* @method static Builder|SsNodeTrafficHourly whereTraffic($value)
|
|
* @method static Builder|SsNodeTrafficHourly whereU($value)
|
|
* @method static Builder|SsNodeTrafficHourly whereUpdatedAt($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class SsNodeTrafficHourly extends Model {
|
|
protected $table = 'ss_node_traffic_hourly';
|
|
|
|
public function info(): HasOne {
|
|
return $this->hasOne(SsNode::class, 'id', 'node_id');
|
|
}
|
|
}
|