MTG Copilot Docs
Data model

Rules examples

Worked interaction examples drawn from the rules and from card rulings.

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

FieldTypeSourceUpdatedWritten by
idstringcalculatedneverdatabase
Internal UUID primary key.
situationstringcalculatedon demandscripts/seed-rules-examples.ts
The scenario, extracted from a Comprehensive Rules example or a card ruling.
rulingstringcalculatedon demandscripts/seed-rules-examples.ts
What actually happens, verbatim from the source.
rule_referencesstring[] | nullcalculatedon demandscripts/seed-rules-examples.ts
Rule numbers the example turns on.
card_namesstring[] | nullcalculatedon demandscripts/seed-rules-examples.ts
Cards named in the example, for retrieval by card.
tagsstring[] | nullcalculatedon demandscripts/seed-rules-examples.ts
Interaction topics matched during seeding, e.g. 'replacement', 'triggered'.
sourcestringcalculatedon demandscripts/seed-rules-examples.ts
'cr' for a Comprehensive Rules example, 'scryfall' for one derived from a card ruling.
created_atstring | nullcalculatedneverdatabase
Row creation timestamp.

TypeScript model

interface rules_examples {
  id:              string
  situation:       string
  ruling:          string
  rule_references: string[] | null
  card_names:      string[] | null
  tags:            string[] | null
  source:          string
  created_at:      string | null
}

On this page