chirpy_server/internal/database/models.go

38 lines
582 B
Go
Raw Normal View History

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 {
ID uuid.UUID
CreatedAt time.Time
UpdatedAt time.Time
Email string
HashedPassword string
2024-10-23 22:16:51 +02:00
}