fix: add BrandAssetCleanupEvent model for handling brand asset cleanup events
Backend CI / Backend (push) Successful in 15m30s

This commit is contained in:
2026-06-21 09:35:37 +08:00
parent 37d75597f9
commit 9b23e89888
@@ -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"`