[Backend] Database Models - Add missing Pydantic schemas #14
Reference in New Issue
Block a user
Delete Branch "fix/issue-3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
This PR addresses issue #3 by adding the missing Pydantic schemas that were identified during the review of the existing implementation against the IMPLEMENTATION_PLAN.md Section 4 schema.
Changes Made
Added to
src/backend/app/db/schemas.py:BotConversationCreate- Schema for creating conversation messagesBotConversationResponse- Schema for conversation message responsesSignalResponse- Schema for trading signal responsesExisting Implementation
The following were already implemented in the codebase (created in PR #13, fix/issue-2):
app/db/models.py): User, Bot, BotConversation, Backtest, Simulation, Signalapp/core/database.py): SQLite engine with foreign keys pragmaNote
The dependencies issue #2 was already completed and merged (PR #13) before starting this work. The existing models.py already matched the IMPLEMENTATION_PLAN.md Section 4 schema. This PR only adds the missing Pydantic schemas for request/response validation.
Related Issue
Fixes #3
lgtm