MC Market Cards
Schema

The core entities behind the MVP.

D1 stores normalized metadata and card records. R2 stores raw and large artifacts.

D1 tables

Table Purpose
issuersCompany/business entities.
listingsExchange-specific tradable listings.
sectorsSector metadata.
price_bars_dailyDaily OHLCV and delivery metrics.
market_movesComputed move diagnostics and interestingness scores.
corporate_eventsClassified filings and public events.
filing_documentsRaw document metadata and R2 object keys.
evidence_itemsClaim-ready source-backed facts.
evidence_packetsCanonical packet JSON passed to generation.
insight_cardsDraft, reviewed, and published cards.
verifier_reportsVerifier status and issue list per card.
card_reviewsHuman review decisions and quality scores.
knowledge_edgesCurated peer, sector, commodity, FX, policy, and macro sensitivities.
watchlistsUser followed companies, sectors, themes, and indices.
feedbackUser feedback ratings and comments.
pipeline_runsBatch run metadata and summaries.

R2 buckets

  • raw-market-data: uploaded exchange/vendor payloads.
  • raw-filings: PDF, XBRL, CSV, HTML, TXT, JSON, and XLSX filings.
  • parsed-filings: extracted text and tables later.
  • evidence-packets: packet snapshots later.
  • generated-cards: generated card snapshots later.
  • audit-logs: review and pipeline artifacts.