Concepts
Stable identifiers
Keep joins intact when a display name, roster, or schedule changes.
Choose the right entity
Each ID belongs to an entity type. These examples show how to choose a key for local storage.
| Prefix | Entity | Typical use |
|---|---|---|
evt_ | Event | Update a scheduled game and its result in the same row |
per_ | Person | Join a player's appearances across teams |
org_ | Organization | Associate a roster or schedule with a team |
cmp_ | Competition | Group seasons and events within a league |
Store the complete value
Treat an ID as an opaque string. The short, readable IDs in these docs belong to illustrative records. Store the entire string in a text column, and use a separate column for the current display name. A corrected spelling then requires a single update.
Link existing identifiers
Keep the source's name alongside its identifier if your app uses another catalog. An external number can otherwise resolve to two different teams in two systems. Review ambiguous matches before recording a cross-reference. ID lookup · Mapping guide