chore(tenant): regenerate sqlc models for enterprise site publisher
Backend CI / Backend (push) Successful in 17m17s
Backend CI / Backend (push) Successful in 17m17s
Sync generated models.go with the 20260605110000_add_enterprise_site_publisher migration: adds EnterpriseSiteCategory / EnterpriseSiteConnection models and the publish_records target_type / target_connection_id columns (and nullable platform_account_id). Fixes the "generated code is committed" CI gate. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -368,6 +368,47 @@ type DesktopTaskTrace struct {
|
||||
ObjectKey pgtype.Text `json:"object_key"`
|
||||
}
|
||||
|
||||
type EnterpriseSiteCategory struct {
|
||||
ID int64 `json:"id"`
|
||||
TenantID int64 `json:"tenant_id"`
|
||||
WorkspaceID int64 `json:"workspace_id"`
|
||||
ConnectionID int64 `json:"connection_id"`
|
||||
RemoteID string `json:"remote_id"`
|
||||
ParentRemoteID pgtype.Text `json:"parent_remote_id"`
|
||||
Name string `json:"name"`
|
||||
Slug pgtype.Text `json:"slug"`
|
||||
RawPayloadJson []byte `json:"raw_payload_json"`
|
||||
SyncedAt pgtype.Timestamptz `json:"synced_at"`
|
||||
CreatedAt pgtype.Timestamptz `json:"created_at"`
|
||||
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
|
||||
}
|
||||
|
||||
type EnterpriseSiteConnection struct {
|
||||
ID int64 `json:"id"`
|
||||
TenantID int64 `json:"tenant_id"`
|
||||
WorkspaceID int64 `json:"workspace_id"`
|
||||
CreatedByUserID int64 `json:"created_by_user_id"`
|
||||
Name string `json:"name"`
|
||||
SiteUrl string `json:"site_url"`
|
||||
CmsType string `json:"cms_type"`
|
||||
AuthType string `json:"auth_type"`
|
||||
Appid string `json:"appid"`
|
||||
CredentialCiphertext string `json:"credential_ciphertext"`
|
||||
DefaultAcode pgtype.Text `json:"default_acode"`
|
||||
DefaultMcode pgtype.Text `json:"default_mcode"`
|
||||
DefaultScode pgtype.Text `json:"default_scode"`
|
||||
Status string `json:"status"`
|
||||
PluginVersion pgtype.Text `json:"plugin_version"`
|
||||
SiteName pgtype.Text `json:"site_name"`
|
||||
LastPingAt pgtype.Timestamptz `json:"last_ping_at"`
|
||||
LastSyncAt pgtype.Timestamptz `json:"last_sync_at"`
|
||||
LastPublishAt pgtype.Timestamptz `json:"last_publish_at"`
|
||||
LastError pgtype.Text `json:"last_error"`
|
||||
CreatedAt pgtype.Timestamptz `json:"created_at"`
|
||||
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
|
||||
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
|
||||
}
|
||||
|
||||
type GenerationTask struct {
|
||||
ID int64 `json:"id"`
|
||||
TenantID int64 `json:"tenant_id"`
|
||||
@@ -818,7 +859,7 @@ type PublishRecord struct {
|
||||
TenantID int64 `json:"tenant_id"`
|
||||
PublishBatchID int64 `json:"publish_batch_id"`
|
||||
ArticleID int64 `json:"article_id"`
|
||||
PlatformAccountID int64 `json:"platform_account_id"`
|
||||
PlatformAccountID pgtype.Int8 `json:"platform_account_id"`
|
||||
PlatformID string `json:"platform_id"`
|
||||
Status string `json:"status"`
|
||||
ExternalArticleID pgtype.Text `json:"external_article_id"`
|
||||
@@ -831,6 +872,8 @@ type PublishRecord struct {
|
||||
RetryCount int32 `json:"retry_count"`
|
||||
CreatedAt pgtype.Timestamptz `json:"created_at"`
|
||||
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
|
||||
TargetType string `json:"target_type"`
|
||||
TargetConnectionID pgtype.Int8 `json:"target_connection_id"`
|
||||
}
|
||||
|
||||
type QuotaReservation struct {
|
||||
|
||||
Reference in New Issue
Block a user