From a5e41ab44921b37c470570f492341026d262c62b Mon Sep 17 00:00:00 2001 From: shokollm <270575765+shokollm@users.noreply.github.com> Date: Wed, 8 Apr 2026 04:41:31 +0000 Subject: [PATCH] Add missing Pydantic schemas for BotConversation and Signal Based on IMPLEMENTATION_PLAN.md Section 4 schema, the existing schemas.py was missing schemas for: - BotConversationCreate/Response (for bot_conversations table) - SignalResponse (for signals table) These were identified as gaps during issue #3 review. --- src/backend/app/db/schemas.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/backend/app/db/schemas.py b/src/backend/app/db/schemas.py index 722574e..b564d59 100644 --- a/src/backend/app/db/schemas.py +++ b/src/backend/app/db/schemas.py @@ -91,3 +91,35 @@ class SimulationResponse(BaseModel): class Config: from_attributes = True + + +class BotConversationCreate(BaseModel): + role: str + content: str + + +class BotConversationResponse(BaseModel): + id: str + bot_id: str + role: str + content: str + created_at: datetime + + class Config: + from_attributes = True + + +class SignalResponse(BaseModel): + id: str + bot_id: str + run_id: str + signal_type: str + token: str + price: float + confidence: Optional[float] + reasoning: Optional[str] + executed: bool + created_at: datetime + + class Config: + from_attributes = True