innercontext/backend
Piotr Oleszczyk c09acc7c81 refactor: split table models into Base/Table/Public for proper FastAPI serialization
Add ProductBase, ProductPublic, ProductWithInventory and
SkinConditionSnapshotBase, SkinConditionSnapshotPublic. Table models now inherit
from their Base counterpart and override JSON fields with sa_column. All
field_serializer hacks removed; FastAPI response models use the non-table Public
classes so Pydantic coerces raw DB dicts → typed models cleanly. ProductCreate
and SnapshotCreate now simply inherit their respective Base classes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 15:37:46 +01:00
..
innercontext refactor: split table models into Base/Table/Public for proper FastAPI serialization 2026-02-27 15:37:46 +01:00
tests refactor: split table models into Base/Table/Public for proper FastAPI serialization 2026-02-27 15:37:46 +01:00
.env.example fix: load .env via python-dotenv; SQLite default for local dev 2026-02-26 20:51:13 +01:00
.python-version Initial commit: backend API, data models, and test suite 2026-02-26 15:10:24 +01:00
db.py Initial commit: backend API, data models, and test suite 2026-02-26 15:10:24 +01:00
main.py refactor: split table models into Base/Table/Public for proper FastAPI serialization 2026-02-27 15:37:46 +01:00
pyproject.toml fix: load .env via python-dotenv; SQLite default for local dev 2026-02-26 20:51:13 +01:00
README.md Initial commit: backend API, data models, and test suite 2026-02-26 15:10:24 +01:00
skincare.yaml Initial commit: backend API, data models, and test suite 2026-02-26 15:10:24 +01:00
uv.lock fix: load .env via python-dotenv; SQLite default for local dev 2026-02-26 20:51:13 +01:00

See the root README for setup and usage instructions.