From 9b23e8988800b2eaf1a73890e1f31064c3a0db27 Mon Sep 17 00:00:00 2001 From: liangxu Date: Sun, 21 Jun 2026 09:35:37 +0800 Subject: [PATCH] fix: add BrandAssetCleanupEvent model for handling brand asset cleanup events --- .../tenant/repository/generated/models.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/server/internal/tenant/repository/generated/models.go b/server/internal/tenant/repository/generated/models.go index 5290382..ac4c1ce 100644 --- a/server/internal/tenant/repository/generated/models.go +++ b/server/internal/tenant/repository/generated/models.go @@ -124,6 +124,21 @@ type Brand struct { Website pgtype.Text `json:"website"` } +type BrandAssetCleanupEvent struct { + ID int64 `json:"id"` + TenantID int64 `json:"tenant_id"` + BrandID int64 `json:"brand_id"` + Status string `json:"status"` + Attempts int32 `json:"attempts"` + NextAttemptAt pgtype.Timestamptz `json:"next_attempt_at"` + LastError pgtype.Text `json:"last_error"` + LockedAt pgtype.Timestamptz `json:"locked_at"` + LockedBy pgtype.Text `json:"locked_by"` + ProcessedAt pgtype.Timestamptz `json:"processed_at"` + CreatedAt pgtype.Timestamptz `json:"created_at"` + UpdatedAt pgtype.Timestamptz `json:"updated_at"` +} + type BrandKeyword struct { ID int64 `json:"id"` TenantID int64 `json:"tenant_id"`