diff --git a/server/internal/tenant/repository/generated/models.go b/server/internal/tenant/repository/generated/models.go index 7ae1dd5..c693e85 100644 --- a/server/internal/tenant/repository/generated/models.go +++ b/server/internal/tenant/repository/generated/models.go @@ -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 {