# Master sets, sections and roles

The data model: set types, sections, roles and variants.

A master set is every card that belongs to a subject. MasterSet defines six types:

| `type` | What it is | Example |
| --- | --- | --- |
| `character` | Every card of one Pokémon | `charizard` |
| `artist` | Every card one illustrator drew | `mitsuhiro-arita-cards` |
| `expansion` | A released set, with every finish of every card | `151` |
| `promo_series` | A promo line | `scarlet-violet-black-star-promos` |
| `specialty` | A kind of card across sets | Gold Star cards |
| `collectible` | An official non-TCG line | Topps series |

## Sections

Collectors disagree about what counts. MasterSet answers by putting every card in exactly one section, and letting you choose sections. A set object lists the sections it has, how many cards each holds, and whether MasterSet includes each by default.

| Key | Contains |
| --- | --- |
| `main` | The set’s own cards, one per printing |
| `finish:<finish>` | A variant finish of those cards, e.g. `finish:reverse_holofoil`, `finish:1st_edition` |
| `cameos` | Cards where the Pokémon appears in another card’s artwork (character sets) |
| `trophy` | Cards awarded at a single event or to players who placed (character sets) |
| `promos` | Stamped, overlay and distribution variants of an expansion’s cards |
| `energy` | Basic Energy belonging to an expansion |
| `special_editions` | Prerelease, staff, league and retailer-exclusive releases |
| `errors`, `prototypes`, `metal`, `jumbo`, `collectibles` | Special kinds of card |

Use `exclude` and `include` with these keys on a checklist request. A key the set does not have is ignored, so one request shape works for every set.

## Roles

A card’s role belongs to the set it is in, not to the card. The same card can be a regular card in one Pokémon’s set and a cameo in another’s. Each checklist row carries `roles`: any of `cameo`, `trophy`, `promo`, `energy`, `special_edition`.

Cameo data builds on [RotomAmiti’s Cameo Pokémon Card Database](https://docs.google.com/spreadsheets/d/18nIkOgqQrHZTz0TrH_gL1e1nL1RcHiCmPF5finAjToY), a community project, with MasterSet’s own corrections and per-set roles.

## Variants

Each finish of a card is its own row with its own id: the unlimited print, the 1st Edition, the reverse holo. `finish` names it. `variants=false` returns one row per card. `GET /cards/{id}` lists a card’s other finishes.

## Identifiers

- Master sets: `ms_12`, or the slug (`charizard`). Slugs can be renamed; a renamed slug answers `301` to the new one. Ids never change.
- Cards: `card_1294`. When two records turn out to be one card they are merged, and the old id answers `301` to the surviving one.
- Treat ids as opaque strings.
