- 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
16 lines
350 B
Go
16 lines
350 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type Subscription struct {
|
|
gorm.Model
|
|
UserID uint `gorm:"not null;index" json:"user_id"`
|
|
Token string `gorm:"uniqueIndex;not null" json:"token"`
|
|
Format string `gorm:"not null" json:"format"` // e.g., "clash", "sing-box"
|
|
ExpireTime *time.Time `json:"expire_time"`
|
|
}
|