This commit is contained in:
PB
2025-11-08 13:55:34 +01:00
parent d7bcb71acf
commit 82653025be
7 changed files with 51 additions and 58 deletions

View File

@@ -8,12 +8,5 @@ type User struct {
Username string `db:"username" json:"username"`
Password string `db:"password" json:"password"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt *time.Time `db:"updated_at,omitempty" json:"updated_at,omitempty"` // FIXME: zero-value issue
UpdatedAt *time.Time `db:"updated_at,omitempty" json:"updated_at,omitempty"`
}
// var TestUser = &User{
// ID: 1,
// Username: "test",
// Password: "test",
// CreateDate: time.Now(),
// }