Automated Action 07f6a51f6f Add complete FastAPI backend for AI tutor application
- User authentication with JWT tokens (register/login)
- Tutor session management with CRUD operations
- Message tracking for tutor conversations
- SQLite database with Alembic migrations
- CORS configuration for frontend integration
- Health check and service info endpoints
- Proper project structure with models, schemas, and API routes
2025-06-23 17:55:19 +00:00

20 lines
349 B
Python

from pydantic import BaseModel
from datetime import datetime
class TutorMessageBase(BaseModel):
message_type: str
content: str
class TutorMessageCreate(TutorMessageBase):
session_id: int
class TutorMessage(TutorMessageBase):
id: int
session_id: int
created_at: datetime
class Config:
from_attributes = True