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.
| Field | Type | Source | Updated | Written by |
|---|---|---|---|---|
| id | string | calculated | never | database |
| Internal UUID primary key. | ||||
| situation | string | calculated | on demand | scripts/seed-rules-examples.ts |
| The scenario, extracted from a Comprehensive Rules example or a card ruling. | ||||
| ruling | string | calculated | on demand | scripts/seed-rules-examples.ts |
| What actually happens, verbatim from the source. | ||||
| rule_references | string[] | null | calculated | on demand | scripts/seed-rules-examples.ts |
| Rule numbers the example turns on. | ||||
| card_names | string[] | null | calculated | on demand | scripts/seed-rules-examples.ts |
| Cards named in the example, for retrieval by card. | ||||
| tags | string[] | null | calculated | on demand | scripts/seed-rules-examples.ts |
| Interaction topics matched during seeding, e.g. 'replacement', 'triggered'. | ||||
| source | string | calculated | on demand | scripts/seed-rules-examples.ts |
| 'cr' for a Comprehensive Rules example, 'scryfall' for one derived from a card ruling. | ||||
| created_at | string | null | calculated | never | database |
| 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
}