// Code generated by sqlc. DO NOT EDIT. // versions: // sqlc v1.31.1 package sqlc import ( "github.com/jackc/pgx/v5/pgtype" ) type Attachment struct { ID pgtype.UUID ChatID pgtype.UUID OwnerID pgtype.UUID Filename string ObjectKey pgtype.Text ContentType string SizeBytes int64 Sha256 string CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz Status string ErrorCode pgtype.Text StagingKey pgtype.Text PipelineVersion int32 } type AttachmentAttempt struct { JobID pgtype.UUID LeaseGeneration int32 Attempt int32 StartedAt pgtype.Timestamptz FinishedAt pgtype.Timestamptz Outcome pgtype.Text ErrorCode pgtype.Text } type AttachmentJob struct { ID pgtype.UUID AttachmentID pgtype.UUID PipelineVersion int32 AttemptsStarted int32 MaxAttempts int32 NextAttemptAt pgtype.Timestamptz LeaseGeneration int32 LeaseUntil pgtype.Timestamptz CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz PublishedOriginalKey pgtype.Text } type AttachmentReplay struct { RequestID pgtype.UUID JobID pgtype.UUID OperatorID string Reason string ExtraAttempts int32 CreatedAt pgtype.Timestamptz } type AttachmentVariant struct { AttachmentID pgtype.UUID PipelineVersion int32 Name string ObjectKey string ContentType string SizeBytes int64 Width int32 Height int32 Sha256 string } type Chat struct { ID pgtype.UUID Title string CreatedAt pgtype.Timestamptz } type ChatMember struct { ChatID pgtype.UUID UserID pgtype.UUID } type Message struct { ID pgtype.UUID ChatID pgtype.UUID SenderID pgtype.UUID Text string CreatedAt pgtype.Timestamptz } type MessageIdempotency struct { UserID pgtype.UUID ChatID pgtype.UUID IdempotencyKey string MessageID pgtype.UUID CreatedAt pgtype.Timestamptz ExpiresAt pgtype.Timestamptz } type MessagesAttachment struct { MessageID pgtype.UUID AttachmentID pgtype.UUID ChatID pgtype.UUID Position int16 } type Outbox struct { ID pgtype.UUID JobID pgtype.UUID Payload []byte AvailableAt pgtype.Timestamptz SentAt pgtype.Timestamptz CreatedAt pgtype.Timestamptz DedupKey string } type User struct { ID pgtype.UUID Username string DisplayName string PasswordHash string CreatedAt pgtype.Timestamptz }