package models import ( "encoding/gob" "github.com/uptrace/bun" ) func init() { gob.Register(User{}) } type User struct { bun.BaseModel `bun:"table:users,alias:u"` ID int `bun:"id,pk,autoincrement"` Email string Password string Username string Photo *string }