phase 2 testing complete
This commit is contained in:
@@ -3,12 +3,12 @@ package models
|
||||
import "time"
|
||||
|
||||
type User struct {
|
||||
ID int64 `xorm:"pk autoincr" json:"id"`
|
||||
Username string `xorm:"unique notnull varchar(64)" json:"username"`
|
||||
Email string `xorm:"unique notnull varchar(255)" json:"email"`
|
||||
PasswordHash string `xorm:"notnull" json:"-"`
|
||||
AvatarURL string `xorm:"varchar(500)"`
|
||||
IsAdmin bool `xorm:"default false" json:"isAdmin"`
|
||||
CreatedAt time.Time `xorm:"created" json:"createdAt"`
|
||||
UpdatedAt time.Time `xorm:"updated" json:"updatedAt"`
|
||||
ID int64 `xorm:"'id' pk autoincr" json:"id"`
|
||||
Username string `xorm:"'username' unique notnull varchar(64)" json:"username"`
|
||||
Email string `xorm:"'email' unique notnull varchar(255)" json:"email"`
|
||||
PasswordHash string `xorm:"'password_hash' notnull" json:"-"`
|
||||
AvatarURL string `xorm:"'avatar_url' varchar(500)" json:"avatarUrl"`
|
||||
IsAdmin bool `xorm:"'is_admin' default false" json:"isAdmin"`
|
||||
CreatedAt time.Time `xorm:"'created_at' created" json:"createdAt"`
|
||||
UpdatedAt time.Time `xorm:"'updated_at' updated" json:"updatedAt"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user