From f1be7d1ea852c5e98960872c12babfd1aa977cc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=83=E9=9A=A8=E7=B7=A3=E5=8B=95?= Date: Tue, 26 Aug 2025 15:42:40 +0800 Subject: [PATCH] v2.6.7 --- database/model/model.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/database/model/model.go b/database/model/model.go index 2e7095d3..23463bc0 100644 --- a/database/model/model.go +++ b/database/model/model.go @@ -35,6 +35,9 @@ type Inbound struct { Remark string `json:"remark" form:"remark"` Enable bool `json:"enable" form:"enable"` ExpiryTime int64 `json:"expiryTime" form:"expiryTime"` + // 中文注释: 新增设备限制字段,用于存储每个入站的设备数限制。 + // gorm:"column:device_limit;default:0" 定义了数据库中的字段名和默认值。 + DeviceLimit int `json:"deviceLimit" form:"deviceLimit" gorm:"column:device_limit;default:0"` ClientStats []xray.ClientTraffic `gorm:"foreignKey:InboundId;references:Id" json:"clientStats" form:"clientStats"` // config part