diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-04-09 22:43:18 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-04-09 22:43:18 +0300 |
| commit | e1da43053d23c995bcd6e7267cb20042398cd64f (patch) | |
| tree | 08c4c371ba070ef765ec2be83270ee6032e54774 /database/model | |
| parent | 3bb90cbf2463b31c6a921f7cd75cf32edd3a37f0 (diff) | |
alireza update pack
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'database/model')
| -rw-r--r-- | database/model/model.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/database/model/model.go b/database/model/model.go index 606b922c..69724213 100644 --- a/database/model/model.go +++ b/database/model/model.go @@ -44,9 +44,9 @@ type Inbound struct { Sniffing string `json:"sniffing" form:"sniffing"` } type InboundClientIps struct { - Id int `json:"id" gorm:"primaryKey;autoIncrement"` + Id int `json:"id" gorm:"primaryKey;autoIncrement"` ClientEmail string `json:"clientEmail" form:"clientEmail" gorm:"unique"` - Ips string `json:"ips" form:"ips"` + Ips string `json:"ips" form:"ips"` } func (i *Inbound) GenXrayInboundConfig() *xray.InboundConfig { @@ -80,4 +80,7 @@ type Client struct { LimitIP int `json:"limitIp"` TotalGB int64 `json:"totalGB" form:"totalGB"` ExpiryTime int64 `json:"expiryTime" form:"expiryTime"` + Enable bool `json:"enable" from:"enable"` + TgID string `json:"tgId" from:"tgId"` + SubID string `json:"subId" from:"subId"` } |
