Initial project scaffold
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>
This commit is contained in:
25
backend/app/schemas/child.py
Normal file
25
backend/app/schemas/child.py
Normal file
@@ -0,0 +1,25 @@
|
||||
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}
|
||||
Reference in New Issue
Block a user