2024-10-23 22:16:51 +02:00
|
|
|
// Code generated by sqlc. DO NOT EDIT.
|
|
|
|
// versions:
|
|
|
|
// sqlc v1.27.0
|
|
|
|
|
|
|
|
package database
|
|
|
|
|
|
|
|
import (
|
2024-10-25 23:31:57 +02:00
|
|
|
"database/sql"
|
2024-10-23 22:16:51 +02:00
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/google/uuid"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Chirp struct {
|
|
|
|
ID uuid.UUID
|
|
|
|
CreatedAt time.Time
|
|
|
|
UpdatedAt time.Time
|
|
|
|
Body string
|
|
|
|
UserID uuid.UUID
|
|
|
|
}
|
|
|
|
|
2024-10-25 23:31:57 +02:00
|
|
|
type RefreshToken struct {
|
|
|
|
Token string
|
|
|
|
CreatedAt time.Time
|
|
|
|
UpdatedAt time.Time
|
|
|
|
UserID uuid.UUID
|
|
|
|
ExpiresAt sql.NullTime
|
|
|
|
RevokedAt sql.NullTime
|
|
|
|
}
|
|
|
|
|
2024-10-23 22:16:51 +02:00
|
|
|
type User struct {
|
2024-10-24 22:40:26 +02:00
|
|
|
ID uuid.UUID
|
|
|
|
CreatedAt time.Time
|
|
|
|
UpdatedAt time.Time
|
|
|
|
Email string
|
|
|
|
HashedPassword string
|
2024-10-26 15:03:14 +02:00
|
|
|
IsChirpyRed bool
|
2024-10-23 22:16:51 +02:00
|
|
|
}
|