mirror of
https://github.com/jcreek/LivingDexTracker.git
synced 2026-09-18 19:42:04 +00:00
29 lines
712 B
TypeScript
29 lines
712 B
TypeScript
// Supabase-based CatchRecord interface
|
|
export interface CatchRecord {
|
|
_id: string; // Maps to Supabase 'id' field for frontend compatibility
|
|
userId: string;
|
|
pokemonId: string;
|
|
pokedexId: string;
|
|
haveToEvolve: boolean;
|
|
caught: boolean;
|
|
inHome: boolean;
|
|
hasGigantamaxed: boolean;
|
|
personalNotes: string;
|
|
}
|
|
|
|
// Database record type for Supabase
|
|
export interface CatchRecordDB {
|
|
id: string;
|
|
userId: string;
|
|
/** Numeric foreign key in database (references `pokemon.id`) */
|
|
pokemonId: number;
|
|
pokedexId: string; // NEW: Foreign key to pokedexes table
|
|
haveToEvolve: boolean;
|
|
caught: boolean;
|
|
inHome: boolean;
|
|
hasGigantamaxed: boolean;
|
|
personalNotes: string;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
}
|