o2o-infinith-demo/supabase/migrations
Haewon Kam 2cda26a649 feat: per-URL clinic folder — auto-save all scraped data to Storage
Each analysis run now creates a dedicated folder in Supabase Storage:
  clinics/{domain}/{reportId}/
    ├── scrape_data.json    (discover-channels: website scrape + Perplexity)
    ├── channel_data.json   (collect-channel-data: all channel API results)
    └── report.json         (generate-report: final AI-generated report)

Screenshots also moved from {reportId}/{id}.png to:
  clinics/{domain}/{reportId}/screenshots/{id}.png

Migration: 20260407_clinic_data_storage.sql creates 'clinic-data' bucket
(private, 10MB/file, JSON only). All writes are non-fatal — pipeline
continues even if Storage upload fails.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-07 10:04:52 +09:00
..
20260330_create_tables.sql feat: real API integration + YouTube Data API v3 + progressive loading 2026-04-02 10:57:14 +09:00
20260403_pipeline_v2.sql feat: Pipeline V2 — 3-phase analysis with verified channel discovery 2026-04-03 21:49:13 +09:00
20260405_channel_errors.sql fix: add Authorization header to all Edge Function calls + fix Vision Analysis 2026-04-05 10:08:03 +09:00
20260405_saas_schema_v3.sql docs: DB Schema V3 — SaaS multi-tenant with time-series + performance loop 2026-04-05 00:45:34 +09:00
20260406_clinic_registry.sql feat: clinic registry DB + pipeline audit P0 fixes 2026-04-07 09:33:25 +09:00
20260407_clinic_data_storage.sql feat: per-URL clinic folder — auto-save all scraped data to Storage 2026-04-07 10:04:52 +09:00
20260407_screenshots_storage.sql feat: archive Firecrawl screenshots to Supabase Storage (permanent URLs) 2026-04-07 09:51:31 +09:00