
- 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
20 lines
349 B
Python
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 |