first round of files
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user