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

@@ -33,7 +33,7 @@ type RefreshToken struct {
Token []byte `bun:"-"`
TokenHash string `bun:"token_hash,notnull"`
ExpiresAt time.Time `bun:"expires_at,notnull"`
CreatedAt time.Time `bun:"created_at,notnull"`
CreatedAt time.Time `bun:"created_at,notnull,nullzero"`
}
func newTokenID() (uuid.UUID, error) {