Files
trihuy-russian/xray/client_traffic.go
T

19 lines
887 B
Go
Raw Normal View History

2023-02-09 22:48:06 +03:30
package xray
2025-09-20 09:35:50 +02:00
// ClientTraffic represents traffic statistics and limits for a specific client.
// It tracks upload/download usage, expiry times, and online status for inbound clients.
2023-02-09 22:48:06 +03:30
type ClientTraffic struct {
2023-02-18 16:07:32 +03:30
Id int `json:"id" form:"id" gorm:"primaryKey;autoIncrement"`
2025-02-04 11:27:58 +01:00
InboundId int `json:"inboundId" form:"inboundId"`
2023-02-09 22:48:06 +03:30
Enable bool `json:"enable" form:"enable"`
2025-02-04 11:27:58 +01:00
Email string `json:"email" form:"email" gorm:"unique"`
2025-09-17 01:29:22 +02:00
SubId string `json:"subId" form:"subId" gorm:"-"`
2023-02-18 16:07:32 +03:30
Up int64 `json:"up" form:"up"`
Down int64 `json:"down" form:"down"`
AllTime int64 `json:"allTime" form:"allTime"`
2023-02-09 22:48:06 +03:30
ExpiryTime int64 `json:"expiryTime" form:"expiryTime"`
Total int64 `json:"total" form:"total"`
2023-12-04 19:20:16 +01:00
Reset int `json:"reset" form:"reset" gorm:"default:0"`
LastOnline int64 `json:"lastOnline" form:"lastOnline" gorm:"default:0"`
2023-02-09 22:48:06 +03:30
}