feat: we made it better...aka i did too many things and don't remember

This commit is contained in:
Stevan Freeborn
2026-08-15 10:48:29 -05:00
parent 5c5a126d88
commit c3fded4492
14 changed files with 919 additions and 72 deletions
+14 -3
View File
@@ -5,6 +5,7 @@
package database
import (
"database/sql"
"time"
"github.com/google/uuid"
@@ -18,9 +19,19 @@ type Chirp struct {
UserID uuid.UUID
}
type User struct {
ID uuid.UUID
type RefreshToken struct {
Token string
CreatedAt time.Time
UpdatedAt time.Time
Email string
ExpiresAt time.Time
RevokedAt sql.NullTime
UserID uuid.UUID
}
type User struct {
ID uuid.UUID
CreatedAt time.Time
UpdatedAt time.Time
Email string
HashedPassword string
}