- Database: Has
filter_type TEXT DEFAULT NULL - TypeScript (
src/db/tank.ts): Missingfilter_typefield inTanktype - Impact: Cannot save or retrieve filter type for tank presets
- Database:
member_id INTEGER - TypeScript (
src/db/members.ts):member_id: stringinAwardRecordtype - Impact: Type errors when working with awards
- Database: Has
sessionstable with fields:session_id,member_id,expires_on - TypeScript: No corresponding type definition found
- Impact: No type safety for session operations
- Database: Both tables exist with proper schemas
- TypeScript: No dedicated type definitions (only query result types)
- Impact: Reduced type safety for species operations
- Database: Has table with
google_sub,google_email,member_id - TypeScript: Only inline query types, no dedicated type
- Impact: No reusable type for Google account operations
- Database: Has full table schema
- TypeScript: Has
ScryptPasswordtype but missingmember_idfield - Impact: Incomplete type definition
- Database: Has
expires_on DATETIME NOT NULL - TypeScript (
src/auth.ts):expires_on: Date(correct type but should verify usage) - Status: OK but should verify Date handling
- Status: OK
- Status: OK
- Status: OK (just fixed missing fields)
- Fix
Tanktype to includefilter_typefield - Fix
AwardRecordtype - changemember_idfrom string to number - Create proper
Sessiontype definition
- Create dedicated types for
SpeciesNameandSpeciesNameGroup - Create
GoogleAccounttype - Update
ScryptPasswordto includemember_idfield or create separatePasswordAccounttype
Consider creating a src/types/database.ts file to centralize all database table type definitions for better maintainability.