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:
@@ -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[]
|
||||
|
||||
@@ -24,6 +24,7 @@ export interface RouteWithChildren extends Route {
|
||||
|
||||
export interface Pokemon {
|
||||
id: number
|
||||
pokeapiId: number
|
||||
nationalDex: number
|
||||
name: string
|
||||
types: string[]
|
||||
|
||||
Reference in New Issue
Block a user