golang-template/internal/database/sqlc/models.go
Leo 43219268e9 feat: Add Sliding expiration for user_sessions
The user_session is valid for 24 hours, but the session will be bumped if it has been over an hour since the last update. An hour was set as a deadline, so that we would not update the user_session rows too often.
2026-08-17 23:47:11 +03:00

27 lines
439 B
Go

// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.29.0
package sqlc
import (
"time"
)
type UserAuth struct {
ID string
Username string
Email string
PasswordHash string
CreatedAt time.Time
UpdatedAt time.Time
}
type UserSession struct {
ID string
SecretHash []byte
UserID string
LastVerifiedAt time.Time
CreatedAt time.Time
UpdatedAt time.Time
}