что-то ему в твоей модели не понравилось :)
type User struct {
UserID int `json:"user_id,omitempty" xorm:"user_id pk autoincr default not null"`
Username string `json:"username" xorm:"NOT NULL"`
Password string `json:"password" xorm:"NOT NULL"`
Admin bool `json:"admin,omitempty"`
Email string `json:"email" xorm:"VARCHAR(64) NOT NULL"`
Banned bool `json:"banned,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty" xorm:"-"`
CreatedAtUnix int64 `json:"created_at_unix,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty" xorm:"-"`
UpdatedAtUnix int64 `json:"updated_at_unix,omitempty"`
RefreshToken uuid.UUID `json:"refreshToken,omitempty"`
Rands string `json:"rands,omitempty" xorm:"VARCHAR(10)"`
Salt string `json:"salt,omitempty" xorm:"VARCHAR(10)"`
// Avatar
Avatar string `json:"avatar,omitempty" xorm:"VARCHAR(2048) NOT NULL"`
AvatarEmail string `json:"avatar_email,omitempty" xorm:"VARCHAR(64) NOT NULL"`
}