Feat: works on my machine

This commit is contained in:
2025-10-16 05:07:56 +08:00
commit 5bbab63a2c
37 changed files with 4553 additions and 0 deletions

13
models/user.go Normal file
View File

@@ -0,0 +1,13 @@
package models
import "github.com/uptrace/bun"
type User struct {
bun.BaseModel `bun:"table:user" json:"-"`
Username string `bun:"username,pk" json:"username"`
Password string `bun:"password" json:"password"`
IsLogged bool `bun:"is_logged" json:"isLogged"`
LoginCount int `bun:"login_count" json:"loginCount"`
}