3x-ui/xray/client_traffic.go
Zakhar Izmaylov a47ce771bd Update repository references from izzzzzi to MHSanaei
This commit updates all GitHub repository references from izzzzzi/3x-ui to MHSanaei/3x-ui in multiple files:
- install.sh: Updated download and release URLs
- x-ui.sh: Updated script download and update URLs
- database: Improved database model migration and added indexing
- Refined database model relationships and constraints
2025-02-02 08:53:43 +03:00

13 lines
563 B
Go

package xray
type ClientTraffic struct {
Id int `json:"id" form:"id" gorm:"primaryKey;autoIncrement"`
InboundId int `json:"inboundId" form:"inboundId" gorm:"index;not null"`
Enable bool `json:"enable" form:"enable"`
Email string `json:"email" form:"email" gorm:"uniqueIndex"`
Up int64 `json:"up" form:"up"`
Down int64 `json:"down" form:"down"`
ExpiryTime int64 `json:"expiryTime" form:"expiryTime"`
Total int64 `json:"total" form:"total"`
Reset int `json:"reset" form:"reset" gorm:"default:0"`
}