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
path: root/xray
diff options
context:
space:
mode:
authorSanaei <ho3ein.sanaei@gmail.com>2025-02-04 13:27:58 +0300
committerGitHub <noreply@github.com>2025-02-04 13:27:58 +0300
commitd18a1a37ceb7c005a5a829ba8b9ef2d103c181b5 (patch)
treeaa9af2e8beb4ce502684f1af300a8902db9f7b2c /xray
parent04c6b2722b7b945ed12e743de70c05e5f8663815 (diff)
revert group management (#2656)
* Revert "json post base path bug fixed (#2647)" This reverts commit 04cf250a547bb64265d256e7d15af7cea5ecfa67. * Revert "Group Management of Subscription Clients" * Revert "fix getSubGroupClients for enable/disable and edit clients." * Revert "Enhance database initialization in db.go (#2645)" This reverts commit 66fe84181b9c4e2f6c6be943a7f486b4308c32ff. * Revert "Add checkpoint handling in CloseDB function (#2646)" This reverts commit 4dd40f6f192e3f94f2ea4fe9e942e6663b5a1527. * Revert "Improved database model migration and added indexing (#2655)" This reverts commit b922d986d6783ce28d00ca948024dee44a11f29e.
Diffstat (limited to 'xray')
-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"`