From 3087c1b123f426b7c1306ab634fb84e7943e4217 Mon Sep 17 00:00:00 2001 From: Ali Golzar <57574919+aliglzr@users.noreply.github.com> Date: Thu, 28 Aug 2025 02:40:50 +0330 Subject: Add all-time traffic for inbounds and clients (#3387) * feat(db): add allTime field to Inbound and ClientTraffic models * feat(inbound): increment all_time for inbounds and clients on traffic updates calculate correct all_time traffic on migrate command * feat(ui): show all-time traffic column for inbounds and its clients * i18n: add pages.inbounds.allTimeTraffic label across locales * Add All Time Traffic Usage in inbounds page top banner --- xray/client_traffic.go | 1 + 1 file changed, 1 insertion(+) (limited to 'xray') diff --git a/xray/client_traffic.go b/xray/client_traffic.go index 0f2389a0..883de2cc 100644 --- a/xray/client_traffic.go +++ b/xray/client_traffic.go @@ -7,6 +7,7 @@ type ClientTraffic struct { Email string `json:"email" form:"email" gorm:"unique"` Up int64 `json:"up" form:"up"` Down int64 `json:"down" form:"down"` + AllTime int64 `json:"allTime" form:"allTime"` ExpiryTime int64 `json:"expiryTime" form:"expiryTime"` Total int64 `json:"total" form:"total"` Reset int `json:"reset" form:"reset" gorm:"default:0"` -- cgit v1.2.3