export type RetentionPolicy = {
  tickets: {
    retention: "infinite"
    notes: string
  }
  machineTelemetry: {
    inventoryDays: number
    metricsDays: number
    alertsDays: number
  }
  reportExports: {
    runsDays: number
    artifactsDays: number
  }
}

export const RETENTION_POLICY: RetentionPolicy = {
  tickets: {
    retention: "infinite",
    notes: "Nao apagar tickets automaticamente; arquivar antes de mover para storage frio.",
  },
  machineTelemetry: {
    inventoryDays: 90,
    metricsDays: 90,
    alertsDays: 180,
  },
  reportExports: {
    runsDays: 30,
    artifactsDays: 30,
  },
}

export const RETENTION_STRATEGY = {
  cleanupMode: "manual-or-lazy" as const,
  cleanupBatchSize: 500,
  archivalPlan:
    "Arquivar dados frios (telemetria/tickets antigos) em storage barato antes de qualquer remocao definitiva.",
  notes:
    "Sem cron de limpeza ativa; usar verificacoes manuais ou GC preguiçoso acionado por handlers de alto volume.",
}
