package models import "time" type User struct { ID int64 `xorm:"pk autoincr"` Username string `xorm:"unique notnull varchar(64)"` Email string `xorm:"unique notnull varchar(255)"` PasswordHash string `xorm:"notnull"` AvatarURL string `xorm:"varchar(500)"` IsAdmin bool `xorm:"default false"` CreatedAt time.Time `xorm:"created"` UpdatedAt time.Time `xorm:"updated"` }