2024-08-21 01:08:47 +02:00
|
|
|
// Code generated by sqlc. DO NOT EDIT.
|
|
|
|
// versions:
|
|
|
|
// sqlc v1.27.0
|
|
|
|
|
2024-08-22 14:58:43 +02:00
|
|
|
package queries
|
2024-08-21 01:08:47 +02:00
|
|
|
|
|
|
|
import (
|
|
|
|
"database/sql"
|
|
|
|
"time"
|
2024-08-25 17:43:55 +02:00
|
|
|
|
|
|
|
"github.com/google/uuid"
|
2024-08-21 01:08:47 +02:00
|
|
|
)
|
|
|
|
|
2024-08-25 17:43:55 +02:00
|
|
|
type AppFlagsGame struct {
|
|
|
|
GameID uuid.UUID
|
|
|
|
GameSeed uuid.NullUUID
|
|
|
|
Uid sql.NullString
|
|
|
|
Tags []string
|
|
|
|
QuestionAmount int32
|
|
|
|
QuestionCurrent int32
|
2024-08-25 22:14:13 +02:00
|
|
|
QuestionCorrect int32
|
2024-08-25 17:43:55 +02:00
|
|
|
CreatedAt time.Time
|
|
|
|
LastActivity time.Time
|
|
|
|
}
|
|
|
|
|
|
|
|
type AppFlagsGamesAnswer struct {
|
2024-08-26 00:18:45 +02:00
|
|
|
GameID uuid.UUID
|
2024-08-25 17:43:55 +02:00
|
|
|
Question int32
|
|
|
|
Correct bool
|
|
|
|
}
|
|
|
|
|
2024-08-21 01:08:47 +02:00
|
|
|
type Session struct {
|
|
|
|
ID int32
|
2024-08-21 17:31:03 +02:00
|
|
|
Uid string
|
2024-08-21 01:08:47 +02:00
|
|
|
Token string
|
|
|
|
Expires sql.NullTime
|
2024-08-21 17:31:03 +02:00
|
|
|
LastActivity time.Time
|
2024-08-21 01:08:47 +02:00
|
|
|
CreatedAt time.Time
|
|
|
|
}
|
|
|
|
|
|
|
|
type SessionIp struct {
|
|
|
|
ID int32
|
|
|
|
SessionID int32
|
2024-08-21 17:31:03 +02:00
|
|
|
IpAddress string
|
|
|
|
Agent string
|
|
|
|
AccessTime time.Time
|
2024-08-21 01:08:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type User struct {
|
2024-08-21 17:31:03 +02:00
|
|
|
ID int32
|
|
|
|
Uid string
|
|
|
|
Email string
|
|
|
|
EmailVerified bool
|
|
|
|
FullName string
|
|
|
|
Username string
|
|
|
|
CreatedAt time.Time
|
|
|
|
UpdatedAt time.Time
|
2024-08-21 01:08:47 +02:00
|
|
|
}
|