- 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
13 lines
432 B
Go
13 lines
432 B
Go
package models
|
|
|
|
import "gorm.io/gorm"
|
|
|
|
type User struct {
|
|
gorm.Model
|
|
Username string `gorm:"uniqueIndex;not null" json:"username"`
|
|
PasswordHash string `gorm:"not null" json:"-"`
|
|
Role string `gorm:"not null" json:"role"` // e.g., "admin", "user"
|
|
MustChangePassword bool `gorm:"not null;default:false" json:"must_change_password"`
|
|
SessionVersion uint `gorm:"not null;default:1" json:"-"`
|
|
}
|