forked from mtusi2026/mtusi2026lab6
101 lines
1.8 KiB
Go
101 lines
1.8 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.31.1
|
|
|
|
package queries
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
"github.com/jackc/pgx/v5/pgtype"
|
|
)
|
|
|
|
type Attachment struct {
|
|
ID uuid.UUID
|
|
ChatID uuid.UUID
|
|
OwnerID uuid.UUID
|
|
Filename string
|
|
ContentType string
|
|
SizeBytes int64
|
|
Sha256 string
|
|
Status string
|
|
PipelineVersion int32
|
|
ErrorCode string
|
|
Variants []byte
|
|
StagingExpired bool
|
|
StagingCleaned bool
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
AcceptedAt pgtype.Timestamptz
|
|
FirstReadyAt pgtype.Timestamptz
|
|
}
|
|
|
|
type AttachmentJob struct {
|
|
ID uuid.UUID
|
|
AttachmentID uuid.UUID
|
|
PipelineVersion int32
|
|
Attempt int32
|
|
Traceparent string
|
|
Tracestate string
|
|
LeaseID uuid.UUID
|
|
LeaseUntil time.Time
|
|
NextAttempt time.Time
|
|
PublishedAt time.Time
|
|
Completed bool
|
|
CreatedAt time.Time
|
|
ReplayCount int64
|
|
ReplayedAt time.Time
|
|
}
|
|
|
|
type Chat struct {
|
|
ID uuid.UUID
|
|
Title string
|
|
CreatedAt time.Time
|
|
}
|
|
|
|
type ChatMember struct {
|
|
ChatID uuid.UUID
|
|
UserID uuid.UUID
|
|
}
|
|
|
|
type Idempotency struct {
|
|
UserID uuid.UUID
|
|
ChatID uuid.UUID
|
|
Key string
|
|
PayloadHash string
|
|
MessageID uuid.UUID
|
|
ExpiresAt time.Time
|
|
}
|
|
|
|
type Message struct {
|
|
ID uuid.UUID
|
|
ChatID uuid.UUID
|
|
SenderID uuid.UUID
|
|
Text string
|
|
CreatedAt time.Time
|
|
}
|
|
|
|
type MessageAttachment struct {
|
|
MessageID uuid.UUID
|
|
AttachmentID uuid.UUID
|
|
Ordinal int32
|
|
}
|
|
|
|
type Session struct {
|
|
TokenHash string
|
|
UserID uuid.UUID
|
|
ExpiresAt time.Time
|
|
}
|
|
|
|
type User struct {
|
|
ID uuid.UUID
|
|
Username string
|
|
DisplayName string
|
|
PasswordHash string
|
|
CreatedAt time.Time
|
|
ChatCount int32
|
|
MessageCount int32
|
|
AttachmentCount int32
|
|
}
|