Feat: works on my machine
This commit is contained in:
13
models/user.go
Normal file
13
models/user.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user