Revert "feat: Track user traffic per node (server_id)"

This commit is contained in:
Xboard
2026-03-30 18:17:27 +08:00
committed by GitHub
parent 048530a893
commit c5a8c836c0
6 changed files with 10 additions and 156 deletions

View File

@@ -9,7 +9,6 @@ use Illuminate\Database\Eloquent\Model;
*
* @property int $id
* @property int $user_id 用户ID
* @property int|null $server_id 节点ID (nullable for legacy data)
* @property int $u 上行流量
* @property int $d 下行流量
* @property int $record_at 记录时间
@@ -26,12 +25,4 @@ class StatUser extends Model
'created_at' => 'timestamp',
'updated_at' => 'timestamp'
];
/**
* Get the server that this traffic stat belongs to
*/
public function server()
{
return $this->belongsTo(Server::class, 'server_id');
}
}