Commit graph

6 commits

Author SHA1 Message Date
Jethro Lin
e900ebc957 bug fix for login and llm providers 2024-12-05 14:35:21 +08:00
Jethro Lin
24daddff7b fix route 2024-12-05 13:49:11 +08:00
Jethro Lin
d91477263f init sql 2024-12-05 11:38:28 +08:00
Jethro Lin
8122ab2b26 modify sql 2024-12-04 17:27:55 +08:00
Jethro Lin
ae4ef60215 fix token issue 2024-12-04 12:54:46 +08:00
Jethro Lin
1ab2e796a9 Created missing models:
Admin: For managing administrators with role-based access
LlmProvider: For managing LLM service providers
Created SQL schema:
All tables as per the database design
Proper foreign key constraints and indexes
Timestamps for auditing
Appropriate character sets and collations
Added operation logging:
Created LogService for centralized logging
Integrated logging into TokenService
Logs all token-related operations with user info and IP address
Enhanced token management:
Added comprehensive logging for all token operations
Improved error handling and validation
Added proper cleanup for revoked tokens
2024-12-04 11:31:10 +08:00