Revert "feat(sat): reporte diario de errores SAT por proxy"

This reverts commit 099f34c903.
This commit is contained in:
Horux Dev
2026-08-03 14:27:53 +00:00
parent 099f34c903
commit b43c9f334a
57 changed files with 7 additions and 4554 deletions

View File

@@ -677,12 +677,8 @@ model SatSyncJob {
// usuario (botón UI). Cambia la política de retry: 2 intentos vs 3 del
// bootstrap puro. Daily/incremental ignoran este campo.
isCustomRange Boolean @default(false) @map("is_custom_range")
// Proxy usado en el último request SAT que falló (host:port). Ayuda a diagnosticar
// bloqueos por IP y a generar reportes diarios de errores por proxy.
proxyUsed String? @map("proxy_used") @db.VarChar(255)
tenant Tenant @relation(fields: [tenantId], references: [id], onDelete: Cascade)
proxyErrors SatProxyError[]
@@index([tenantId])
@@index([status])
@@ -690,24 +686,6 @@ model SatSyncJob {
@@map("sat_sync_jobs")
}
// Errores de bloqueo/devolución del SAT por proxy.
// Permite reportes diarios de cuántos 404/500X/etc. ocurrieron en cada IP.
model SatProxyError {
id String @id @default(uuid())
jobId String @map("job_id")
proxyUsed String? @map("proxy_used") @db.VarChar(255)
errorCode String? @map("error_code") @db.VarChar(50)
stage String? @map("stage") @db.VarChar(255)
message String? @map("message")
createdAt DateTime @default(now()) @map("created_at")
job SatSyncJob @relation(fields: [jobId], references: [id], onDelete: Cascade)
@@index([createdAt])
@@index([proxyUsed, createdAt])
@@map("sat_proxy_errors")
}
enum SatSyncType {
initial
daily