MTG Copilot Docs
Data model

Set guides

Per-set mechanics, themes and Limited archetypes, parsed from the MTG Fandom wiki.

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

FieldTypeSourceUpdatedWritten by
set_codestringwikion demandscripts/seed-set-guides.ts
Set this guide describes (FK → sets.code). Primary key.
mechanicsJsonwikion demandscripts/seed-set-guides.ts
Mechanics and keywords introduced or returning in the set, parsed from the wiki infobox.
themesJsonwikion demandscripts/seed-set-guides.ts
Set themes, parsed from the wiki page.
archetypesJsonwikion demandscripts/seed-set-guides.ts
Limited archetypes with their colour pairs, parsed from the wiki's archetype section.
blurbstring | nullaion demandscripts/seed-set-guides.ts (blurb)
Short set summary written by Haiku, grounded in the parsed page. Falls back to model knowledge when no page resolves, so read it as orientation rather than fact.
wiki_urlstring | nullwikion demandscripts/seed-set-guides.ts
Fandom wiki page, stored only once the title is verified to resolve.
wotc_urlstring | nullwikion demandscripts/seed-set-guides.ts
Official Wizards set page, where one is known.
slug_overridestring | nulluseron demandmanual
Wiki page title to use when the one derived from the set name resolves to the wrong page.
parsed_atstring | nullcalculatedon demanddatabase
When the wiki page was last parsed.
created_atstringcalculatedneverdatabase
Row creation timestamp.
updated_atstringcalculatedon writedatabase
Row update timestamp.

TypeScript model

interface set_guides {
  set_code:      string
  mechanics:     Json
  themes:        Json
  archetypes:    Json
  blurb:         string | null
  wiki_url:      string | null
  wotc_url:      string | null
  slug_override: string | null
  parsed_at:     string | null
  created_at:    string
  updated_at:    string
}

On this page