- 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
19 lines
515 B
Go
19 lines
515 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
// AccessToken grants a client access to one Listener's generated node
|
|
// configuration. Listener is the single source of truth for client exports.
|
|
type AccessToken struct {
|
|
gorm.Model
|
|
Name string `gorm:"not null" json:"name"`
|
|
Token string `gorm:"uniqueIndex;not null" json:"-"`
|
|
Enabled bool `gorm:"default:true" json:"enabled"`
|
|
ExpireAt *time.Time `json:"expire_at"`
|
|
ListenerID uint `gorm:"index" json:"listener_id"`
|
|
}
|