167 lines
7.3 KiB
Go
167 lines
7.3 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.31.1
|
|
|
|
package dbgen
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Account struct {
|
|
ID int64 `json:"id"`
|
|
GochatAccountID int64 `json:"gochat_account_id"`
|
|
GochatInboxID int64 `json:"gochat_inbox_id"`
|
|
GochatInboxIdentifier string `json:"gochat_inbox_identifier"`
|
|
ConfigVersion int64 `json:"config_version"`
|
|
AppliedConfigVersion int64 `json:"applied_config_version"`
|
|
ConfigSyncStatus string `json:"config_sync_status"`
|
|
SessionID string `json:"session_id"`
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
PendingPassword *string `json:"pending_password"`
|
|
CredentialState string `json:"credential_state"`
|
|
Enabled int64 `json:"enabled"`
|
|
DesiredPresence string `json:"desired_presence"`
|
|
ActualPresence string `json:"actual_presence"`
|
|
ConnectionStatus string `json:"connection_status"`
|
|
BaseUrl *string `json:"base_url"`
|
|
SiteID *string `json:"site_id"`
|
|
LoginName *string `json:"login_name"`
|
|
MaToken *string `json:"ma_token"`
|
|
Maxwordid int64 `json:"maxwordid"`
|
|
Maxotick int64 `json:"maxotick"`
|
|
Maxtmpid int64 `json:"maxtmpid"`
|
|
GochatHmacToken string `json:"gochat_hmac_token"`
|
|
GochatWebhookSecret string `json:"gochat_webhook_secret"`
|
|
FailureCount int64 `json:"failure_count"`
|
|
LastErrorCode *string `json:"last_error_code"`
|
|
LastErrorMessage *string `json:"last_error_message"`
|
|
LastLoginAt *time.Time `json:"last_login_at"`
|
|
LastHeartbeatAt *time.Time `json:"last_heartbeat_at"`
|
|
LastConfigSyncAt *time.Time `json:"last_config_sync_at"`
|
|
DeletedAt *time.Time `json:"deleted_at"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|
|
|
|
type ConversationMap struct {
|
|
AccountID int64 `json:"account_id"`
|
|
SwtSid string `json:"swt_sid"`
|
|
GochatContactSourceID string `json:"gochat_contact_source_id"`
|
|
GochatContactID *int64 `json:"gochat_contact_id"`
|
|
GochatConversationID *int64 `json:"gochat_conversation_id"`
|
|
GochatDisplayID *int64 `json:"gochat_display_id"`
|
|
SwtAssigneeName *string `json:"swt_assignee_name"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
XstRequired int64 `json:"xst_required"`
|
|
XstToken *string `json:"xst_token"`
|
|
XstCid *string `json:"xst_cid"`
|
|
XstKfname *string `json:"xst_kfname"`
|
|
XstSyncKey *string `json:"xst_sync_key"`
|
|
}
|
|
|
|
type InboundEvent struct {
|
|
ID int64 `json:"id"`
|
|
AccountID int64 `json:"account_id"`
|
|
SwtSid string `json:"swt_sid"`
|
|
SeqID int64 `json:"seq_id"`
|
|
Kind int64 `json:"kind"`
|
|
SwtEventKey string `json:"swt_event_key"`
|
|
EventSubtype *string `json:"event_subtype"`
|
|
OpName *string `json:"op_name"`
|
|
Text *string `json:"text"`
|
|
SwtTimestamp *string `json:"swt_timestamp"`
|
|
RawLine string `json:"raw_line"`
|
|
NormalizedPayload *string `json:"normalized_payload"`
|
|
MappingStrategy *string `json:"mapping_strategy"`
|
|
DeliveryStatus string `json:"delivery_status"`
|
|
Attempts int64 `json:"attempts"`
|
|
NextAttemptAt *time.Time `json:"next_attempt_at"`
|
|
GochatMessageID *int64 `json:"gochat_message_id"`
|
|
LastError *string `json:"last_error"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|
|
|
|
type MessageMap struct {
|
|
AccountID int64 `json:"account_id"`
|
|
SwtSid string `json:"swt_sid"`
|
|
SwtMessageID *string `json:"swt_message_id"`
|
|
SwtSeqID int64 `json:"swt_seq_id"`
|
|
Kind int64 `json:"kind"`
|
|
ChildIndex int64 `json:"child_index"`
|
|
Direction string `json:"direction"`
|
|
GochatMessageID int64 `json:"gochat_message_id"`
|
|
GochatSourceID *string `json:"gochat_source_id"`
|
|
ContentFingerprint *string `json:"content_fingerprint"`
|
|
RetractedAt *time.Time `json:"retracted_at"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|
|
|
|
type OutboundMessage struct {
|
|
ID int64 `json:"id"`
|
|
AccountID int64 `json:"account_id"`
|
|
SwtSid string `json:"swt_sid"`
|
|
EventID string `json:"event_id"`
|
|
OccurredAt time.Time `json:"occurred_at"`
|
|
GochatMessageID int64 `json:"gochat_message_id"`
|
|
RetryVersion int64 `json:"retry_version"`
|
|
MessageType string `json:"message_type"`
|
|
Content *string `json:"content"`
|
|
Payload string `json:"payload"`
|
|
DeliveryStatus string `json:"delivery_status"`
|
|
ResultVersion int64 `json:"result_version"`
|
|
ExternalID *string `json:"external_id"`
|
|
ExternalErrorCode *string `json:"external_error_code"`
|
|
ClaimedAt *time.Time `json:"claimed_at"`
|
|
Attempts int64 `json:"attempts"`
|
|
NextAttemptAt *time.Time `json:"next_attempt_at"`
|
|
StatusSyncStatus string `json:"status_sync_status"`
|
|
StatusSyncAttempts int64 `json:"status_sync_attempts"`
|
|
StatusSyncNextAt *time.Time `json:"status_sync_next_at"`
|
|
StatusReportedAt *time.Time `json:"status_reported_at"`
|
|
LastError *string `json:"last_error"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
SwtSentAt *time.Time `json:"swt_sent_at"`
|
|
XstDeliveryStatus string `json:"xst_delivery_status"`
|
|
}
|
|
|
|
type OutboundOperation struct {
|
|
ID int64 `json:"id"`
|
|
AccountID int64 `json:"account_id"`
|
|
SwtSid string `json:"swt_sid"`
|
|
EventID string `json:"event_id"`
|
|
Operation string `json:"operation"`
|
|
Payload string `json:"payload"`
|
|
OccurredAt time.Time `json:"occurred_at"`
|
|
DeliveryStatus string `json:"delivery_status"`
|
|
ClaimedAt *time.Time `json:"claimed_at"`
|
|
Attempts int64 `json:"attempts"`
|
|
NextAttemptAt *time.Time `json:"next_attempt_at"`
|
|
LastError *string `json:"last_error"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|
|
|
|
type OutboundPart struct {
|
|
ID int64 `json:"id"`
|
|
OutboundMessageID int64 `json:"outbound_message_id"`
|
|
PartIndex int64 `json:"part_index"`
|
|
PartType string `json:"part_type"`
|
|
AttachmentID *int64 `json:"attachment_id"`
|
|
Content *string `json:"content"`
|
|
DataUrl *string `json:"data_url"`
|
|
FileName *string `json:"file_name"`
|
|
FileSize *int64 `json:"file_size"`
|
|
Voice int64 `json:"voice"`
|
|
DeliveryStatus string `json:"delivery_status"`
|
|
ExternalID *string `json:"external_id"`
|
|
LastError *string `json:"last_error"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|