mirror of
https://github.com/escalante29/healthy-fit.git
synced 2026-03-21 09:08:46 +01:00
Set up backend and frontend structure for a health and fitness tracker using Python (FastAPI, SQLModel, DSPy) and React. Includes Docker and Compose configs, authentication, nutrition AI module, health/nutrition/user endpoints, database models, and basic frontend with routing and context. Enables tracking nutrition, health metrics, and user management, with architecture ready for future mobile and cloud deployment.
18 lines
346 B
Python
18 lines
346 B
Python
from typing import Optional
|
|
from sqlmodel import SQLModel, Field
|
|
|
|
class UserBase(SQLModel):
|
|
email: str
|
|
username: str
|
|
|
|
class UserCreate(UserBase):
|
|
password: str
|
|
|
|
class UserRead(UserBase):
|
|
id: int
|
|
|
|
class UserUpdate(SQLModel):
|
|
email: Optional[str] = None
|
|
username: Optional[str] = None
|
|
password: Optional[str] = None
|