2026-08-06 19:31:58 -05:00
|
|
|
// Code generated by sqlc. DO NOT EDIT.
|
|
|
|
|
// versions:
|
|
|
|
|
// sqlc v1.31.1
|
|
|
|
|
|
|
|
|
|
package database
|
|
|
|
|
|
|
|
|
|
import (
|
2026-08-15 10:48:29 -05:00
|
|
|
"database/sql"
|
2026-08-06 19:31:58 -05:00
|
|
|
"time"
|
|
|
|
|
|
|
|
|
|
"github.com/google/uuid"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Chirp struct {
|
|
|
|
|
ID uuid.UUID
|
|
|
|
|
CreatedAt time.Time
|
|
|
|
|
UpdatedAt time.Time
|
|
|
|
|
Body string
|
|
|
|
|
UserID uuid.UUID
|
|
|
|
|
}
|
|
|
|
|
|
2026-08-15 10:48:29 -05:00
|
|
|
type RefreshToken struct {
|
|
|
|
|
Token string
|
2026-08-06 19:31:58 -05:00
|
|
|
CreatedAt time.Time
|
|
|
|
|
UpdatedAt time.Time
|
2026-08-15 10:48:29 -05:00
|
|
|
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
|
2026-08-15 20:18:21 -05:00
|
|
|
IsChirpyRed bool
|
2026-08-06 19:31:58 -05:00
|
|
|
}
|