- Port now supports mihomo ports format (single/range/list) - Add explicit RoutingMark field support - Auto-propagate UDP flag for vmess/vless/trojan/anytls/trusttunnel - Update validator to accept port ranges - Sync visual config and client converter port types - Rename module from dzx941 to kazeyukiro - Fix missing ExpiresAt in JWTClaims - Fix nodeDTO Port type to string - Fix frontend tsconfig and add missing dependencies
12 lines
360 B
Go
12 lines
360 B
Go
package models
|
|
|
|
import "gorm.io/gorm"
|
|
|
|
type Config struct {
|
|
gorm.Model
|
|
Name string `gorm:"uniqueIndex;not null" json:"name"`
|
|
Type string `gorm:"type:varchar(50);not null;default:'custom'" json:"type"` // e.g., "custom", "dns", "general"
|
|
Content string `gorm:"type:text" json:"content"`
|
|
Enabled bool `gorm:"not null;default:true" json:"enabled"`
|
|
}
|