Full-stack homeschool web app with FastAPI backend, Vue 3 frontend, MySQL database, and Docker Compose orchestration. Includes JWT auth, WebSocket real-time TV dashboard, schedule builder, activity logging, and multi-child support. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
26 lines
487 B
Python
26 lines
487 B
Python
from datetime import date
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class ChildCreate(BaseModel):
|
|
name: str
|
|
birth_date: date | None = None
|
|
color: str = "#4F46E5"
|
|
|
|
|
|
class ChildUpdate(BaseModel):
|
|
name: str | None = None
|
|
birth_date: date | None = None
|
|
color: str | None = None
|
|
is_active: bool | None = None
|
|
|
|
|
|
class ChildOut(BaseModel):
|
|
id: int
|
|
name: str
|
|
birth_date: date | None
|
|
is_active: bool
|
|
color: str
|
|
|
|
model_config = {"from_attributes": True}
|