/* * ============================================================================= * VibeQuant (vquant) — AI-Powered Financial Intelligence Platform * ----------------------------------------------------------------------------- * File: server/reset-showcase.ts * * Author: Simon-Pierre Boucher * Contact: contact@spboucher.ai * Website: https://www.spboucher.ai * Demo: https://www.vquant.ai * License: MIT (see LICENSE) * * Copyright © 2026 Simon-Pierre Boucher. All rights reserved. * ============================================================================= */ import { db, schema } from "./db"; const { sharedReports } = schema; async function resetShowcase() { try { console.log('🗑️ Réinitialisation du Showcase Communautaire...'); console.log(''); // Compter les rapports avant suppression const reportsBefore = await (db as any).select().from(sharedReports); console.log(`Nombre de rapports actuels: ${reportsBefore.length}`); console.log(''); await (db as any).delete(sharedReports); console.log('✅ Showcase réinitialisé avec succès !'); console.log(` ${reportsBefore.length} analyses publiques ont été supprimées.`); console.log(''); process.exit(0); } catch (error) { console.error('❌ Erreur lors de la réinitialisation:', error); process.exit(1); } } resetShowcase();