mirror of
https://github.com/joaovitoriasilva/endurain.git
synced 2026-01-10 16:28:00 -05:00
Refactors the health_weight module to use distinct Pydantic schemas for create, update, and read operations, and updates all related CRUD, router, and utility functions to use these schemas. Improves type safety, validation, and error handling in health_weight CRUD functions, and updates the health_weight model to use SQLAlchemy 2.0 style with mapped_column. Adds module-level __init__.py for health_weight, updates API endpoints to return correct response models, and ensures BMI is calculated and updated consistently. Also adds indexes for health_steps and health_weight tables in the Alembic migration, and makes minor docstring and type improvements in related modules.
Generic single-database configuration.