fix: timestamp cols default not working

This commit is contained in:
2025-11-30 17:42:35 +00:00
parent fb8e91dd47
commit 987edc0d4a
4 changed files with 7 additions and 7 deletions

View File

@@ -15,8 +15,8 @@ type User struct {
DisplayName string `bun:"display_name" json:"displayName"`
Email string `bun:"email,unique,notnull" json:"email"`
Password password.Hashed `bun:"password,notnull" json:"-"`
CreatedAt time.Time `bun:"created_at,notnull" json:"createdAt"`
UpdatedAt time.Time `bun:"updated_at,notnull" json:"updatedAt"`
CreatedAt time.Time `bun:"created_at,notnull,nullzero" json:"createdAt"`
UpdatedAt time.Time `bun:"updated_at,notnull,nullzero" json:"updatedAt"`
}
func newUserID() (uuid.UUID, error) {