phase 2 initial test

This commit is contained in:
2026-05-06 23:39:04 +02:00
parent 8592fc5d65
commit 57991e5406
17 changed files with 720 additions and 133 deletions
+7 -7
View File
@@ -3,12 +3,12 @@ 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"`
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"`
CreatedAt time.Time `xorm:"created"`
UpdatedAt time.Time `xorm:"updated"`
IsAdmin bool `xorm:"default false" json:"isAdmin"`
CreatedAt time.Time `xorm:"created" json:"createdAt"`
UpdatedAt time.Time `xorm:"updated" json:"updatedAt"`
}