feat: 更新配置文件和模型以支持服务器相关功能

修改MySQL和Redis配置为本地开发环境
在Subscribe类型和模型中添加服务器相关字段
在InviteConfig中添加新配置项
启用ServerModel并修复数据库迁移错误处理
删除无用的运行配置文件
This commit is contained in:
2025-12-28 17:08:24 -08:00
parent 49d59eccb0
commit f26babaa6f
9 changed files with 1114 additions and 24 deletions
+2
View File
@@ -22,6 +22,8 @@ type Subscribe struct {
Quota int64 `gorm:"type:int;not null;default:0;comment:Quota"`
Nodes string `gorm:"type:varchar(255);comment:Node Ids"`
NodeTags string `gorm:"type:varchar(255);comment:Node Tags"`
ServerGroup string `gorm:"type:varchar(255);comment:Server Group Ids"`
Server string `gorm:"type:varchar(255);comment:Server Ids"`
Show *bool `gorm:"type:tinyint(1);not null;default:0;comment:Show portal page"`
Sell *bool `gorm:"type:tinyint(1);not null;default:0;comment:Sell"`
Sort int64 `gorm:"type:int;not null;default:0;comment:Sort"`