Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'xray/client_traffic.go')
-rw-r--r--xray/client_traffic.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/xray/client_traffic.go b/xray/client_traffic.go
index 6eb2d270..0f2389a0 100644
--- a/xray/client_traffic.go
+++ b/xray/client_traffic.go
@@ -2,9 +2,9 @@ package xray
type ClientTraffic struct {
Id int `json:"id" form:"id" gorm:"primaryKey;autoIncrement"`
- InboundId int `json:"inboundId" form:"inboundId" gorm:"index;not null"`
+ InboundId int `json:"inboundId" form:"inboundId"`
Enable bool `json:"enable" form:"enable"`
- Email string `json:"email" form:"email" gorm:"uniqueIndex"`
+ Email string `json:"email" form:"email" gorm:"unique"`
Up int64 `json:"up" form:"up"`
Down int64 `json:"down" form:"down"`
ExpiryTime int64 `json:"expiryTime" form:"expiryTime"`