Separate PokeAPI ID from national dex for correct form identification

Pokemon forms (e.g., Alolan Rattata) had their PokeAPI ID (10091) stored as
national_dex, causing them to display incorrectly. This renames the unique
identifier to pokeapi_id and adds a real national_dex field shared between
forms and their base species, so Alolan Rattata correctly shows as #19.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-07 14:55:06 +01:00
parent cb027e5215
commit d168d99bba
46 changed files with 23459 additions and 22289 deletions

View File

@@ -32,6 +32,7 @@ export interface RouteReorderItem {
}
export interface CreatePokemonInput {
pokeapiId: number
nationalDex: number
name: string
types: string[]
@@ -39,6 +40,7 @@ export interface CreatePokemonInput {
}
export interface UpdatePokemonInput {
pokeapiId?: number
nationalDex?: number
name?: string
types?: string[]

View File

@@ -24,6 +24,7 @@ export interface RouteWithChildren extends Route {
export interface Pokemon {
id: number
pokeapiId: number
nationalDex: number
name: string
types: string[]