MTG Copilot Docs
Data model

Card rulings

Official rulings issued for individual cards.

5 columns. Every value below is generated from the provenance registry.

FieldTypeSourceUpdatedWritten by
idstringcalculatedneverdatabase
Internal UUID primary key.
oracle_idstringscryfallon set releasescripts/seed-cards.ts (rulings)
Oracle card the ruling applies to (FK → cards.scryfall_oracle_id).
commentstringwotcon set releasescripts/seed-cards.ts (rulings)
The ruling text, verbatim.
published_atstringwotcon set releasescripts/seed-cards.ts (rulings)
Date the ruling was issued. Later rulings supersede earlier ones on the same card.
sourcestringscryfallon set releasescripts/seed-cards.ts (rulings)
Who issued it: 'wotc' for official rulings, 'scryfall' for Scryfall's own notes.

TypeScript model

interface card_rulings {
  id:           string
  oracle_id:    string
  comment:      string
  published_at: string
  source:       string
}

On this page