Add running fitness history and configurable heart rate zones

This commit is contained in:
Peter Stockings
2026-10-22 23:20:35 +11:00
parent b8eb6d10f8
commit 95e751d05c
15 changed files with 534 additions and 2 deletions
@@ -0,0 +1,19 @@
"""Personal five-zone fitness settings."""
import sqlalchemy as sa
from alembic import op
revision = "8da41b79e632"
down_revision = "7c6e32b491ad"
branch_labels = None
depends_on = None
def upgrade():
with op.batch_alter_table("user") as batch:
batch.add_column(sa.Column("hr_zones", sa.JSON()))
def downgrade():
with op.batch_alter_table("user") as batch:
batch.drop_column("hr_zones")