This is the initial push of the outline of the life dashboard

This commit is contained in:
YOUNG
2026-03-09 12:52:48 -05:00
parent bf1e4e754f
commit 7596a5f382
47 changed files with 6522 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
from datetime import date, datetime
from sqlalchemy import Date, Numeric, Text, func
from sqlalchemy.orm import Mapped, mapped_column
from app.database import Base
class WeightEntry(Base):
__tablename__ = "weight_entries"
id: Mapped[int] = mapped_column(primary_key=True)
date: Mapped[date] = mapped_column(Date, unique=True)
weight_lbs: Mapped[float] = mapped_column(Numeric(5, 1))
body_fat_pct: Mapped[float | None] = mapped_column(Numeric(4, 1), nullable=True)
notes: Mapped[str | None] = mapped_column(Text, nullable=True)
created_at: Mapped[datetime] = mapped_column(server_default=func.now())