mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-12 23:48:53 +00:00
42 lines
1.6 KiB
PHP
42 lines
1.6 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Builder;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* 节点每日流量统计
|
|
*
|
|
* @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|SsNodeTrafficDaily newModelQuery()
|
|
* @method static Builder|SsNodeTrafficDaily newQuery()
|
|
* @method static Builder|SsNodeTrafficDaily query()
|
|
* @method static Builder|SsNodeTrafficDaily whereCreatedAt($value)
|
|
* @method static Builder|SsNodeTrafficDaily whereD($value)
|
|
* @method static Builder|SsNodeTrafficDaily whereId($value)
|
|
* @method static Builder|SsNodeTrafficDaily whereNodeId($value)
|
|
* @method static Builder|SsNodeTrafficDaily whereTotal($value)
|
|
* @method static Builder|SsNodeTrafficDaily whereTraffic($value)
|
|
* @method static Builder|SsNodeTrafficDaily whereU($value)
|
|
* @method static Builder|SsNodeTrafficDaily whereUpdatedAt($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class SsNodeTrafficDaily extends Model {
|
|
protected $table = 'ss_node_traffic_daily';
|
|
protected $primaryKey = 'id';
|
|
|
|
function info() {
|
|
return $this->hasOne(SsNode::class, 'id', 'node_id');
|
|
}
|
|
|
|
}
|