client_traffic.go 790 B

1234567891011121314151617
  1. package xray
  2. type ClientTraffic struct {
  3. Id int `json:"id" form:"id" gorm:"primaryKey;autoIncrement"`
  4. InboundId int `json:"inboundId" form:"inboundId"`
  5. Enable bool `json:"enable" form:"enable"`
  6. Email string `json:"email" form:"email" gorm:"unique"`
  7. UUID string `json:"uuid" form:"uuid" gorm:"unique;type:char(36)"`
  8. SubId string `json:"subId" form:"subId" gorm:"-"`
  9. Up int64 `json:"up" form:"up"`
  10. Down int64 `json:"down" form:"down"`
  11. AllTime int64 `json:"allTime" form:"allTime"`
  12. ExpiryTime int64 `json:"expiryTime" form:"expiryTime"`
  13. Total int64 `json:"total" form:"total"`
  14. Reset int `json:"reset" form:"reset" gorm:"default:0"`
  15. LastOnline int64 `json:"lastOnline" form:"lastOnline" gorm:"default:0"`
  16. }